int is the return type, and the main function must be defined with that return type (with an exception that you need not be concerned with at the moment). You might want to read the tutorial on command line arguments.Originally Posted by spadez
You need to understand a little on pointers to understand why this is so. Whether to use the address of operator depends on context. I suggest that you read the tutorial on pointers.Originally Posted by spadez
It is not necessary since you can declare the function as having an unknown number of parameters, but that is generally bad practice.Originally Posted by spadez