Basic C
Which of the following is the return type of the main() function in most C programs?
Remember, C programs return a status code to the OS on most systems.
- void
- void means no return value.
- int
- int means an integer -- a whole number.
- string
- Some languages call a sequence of characters 'a string'.
The correct answer is 'int'.
Status code returned on most systems is an integer, with zero typically indicating no error.