Adding proper main function

contains proper prototype of function main in c.