This question cannot be answered without seeing the source program.
this is a void main()int, char, are execution the program and it is not return the void.
Actually, it is:int main (void)orint main (int, char **)the point where the execution of the program begins
The Java main method of a program is the place where the program execution begins. A main method would look like below public static void main(String[] args){ }
This is really unclear. If you're asking why you should write void main() then the answer is that you shouldn't. main can return an int as an error code, so it's better to do int main() instead.
void main() { printf("followiing"); }
The entry point of a C program is the main function.The function signature might be like one of these:1. int main (void)2. int main (int argc, char *argv[])
That is the signature for the main program. The main program is the starting point, where execution starts - from there, other programs may be invoked.
becoz the main program doesnot return any value to the os.
int main (void){puts ("Hello world") ;return 0 ;}
#include<stdio.h> #include<conio.h> void main()
Making main static is probably not a good idea; it may keep the linker from recognizing the program entry point. main is not a method, so it cannot be anything but public, for all intents and purposes. Declaring main to have a void return and/or with a void argument list is usually harmless, although it limits how your program can interact with the OS.
#include<stdio.h> #include<conio.h> void main() { }