int main(int argc char* argv ) in c code example
Example 1: int main(int argc char *argv ) in C
int // Specifies that type of variable the function returns.
// main() must return an integer
main ( int argc, char **argv ) {
// code
return 0; // Indicates that everything went well.
}
Example 2: command line arguments c
int main(int argc, char* argv[]){/*...*/}