0
what is really main(void)?
any help
2 Respuestas
+ 1
Rajesh Sharma it's similar to main() for c++... in c , main(void) differs from main()...
try following in both c and c++ :
void dosomething() {} // define function
dosomething (5); // function call
in c++, it is error where as in c, it will compile..because in c, it is considered that you should pass void as argument while definition of function if it is supposed to call without argument....
p.s. : if you would define your function as void dosomething (void), your function call will result into error in c also
0
that never returns the value...