+ 2

Is void main () a Library or User Defined Function ??

24th Sep 2019, 1:11 PM
Devesh Ratan
3 Antworten
+ 3
Yes ,we call main() in c as userdefined function Reason:-it accepts main1(),main2()....instead of main()
24th Sep 2019, 1:29 PM
Krid Indu
Krid Indu - avatar
+ 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.
12th Jan 2020, 8:38 AM
Shivesh Ratan
+ 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
24th Sep 2019, 4:20 PM
✳AsterisK✳
✳AsterisK✳ - avatar