Home > Back-end >  The main function in C language format
The main function in C language format

Time:09-18

In C void main (), right? Should not be int main ()?

CodePudding user response:

, but is a process, not return a value; Is a function, returns a value

CodePudding user response:

Void main () is very old standard, the new should be int main ()

CodePudding user response:

Int is the main C standard,

CodePudding user response:

The execution of a function returns a value, after all, not before the embedded devices

CodePudding user response:

Int the main can be invoked to shell the return value can be used for input and output redirection, pipelines is suitable for batch architectural style,

CodePudding user response:

Int main () USES the VS2005 later all don't need to write the return 0 because VS automatic return zero

CodePudding user response:

In fact, little different from that of, don't struggle so much
  • Related