+ 2
Is void main () a Library or User Defined Function ??
3 Antworten
+ 3
Yes ,we call main() in c as userdefined function
Reason:-it accepts main1(),main2()....instead of main()
+ 2
main function is neither a built-in (predefined) nor user-defined function.
It is a special function.
Main is a user-defined function with a predefined function prototype. The user writes its functionality, but its declaration has certain restrictions.
Every program contains at least one function and that function is called main ().
Main function is entry point of any program.
+ 1
void main() is not allowed anymore latest versions of compiler will spit an error message to your face, you're advise to use int main(), and it's not a user defined function