I am confused b/n two kinds of main() functions, int main() and int main(void) and I am somewhat good at c++. Both runs the same code without error.
My question : What is the use of the (void). Index said, it does not accept parameter or something...Could somebody give their own explanation as to what it does??
Why not line 15? I know C++ and in C++ if foo(3) is given, where c is passed as an argument, it will show error cause there is no pre-defined thing that there should a argument to the function.....
So in C, even though you do not declare a argument in the time of function declaration you still can pass it during call??
What would happen then?