1

The Minimum C Program

This is the minimum C program:

main()

Every C program must have one and only one main() function.

The {} groups statements together and, as can be seen from above, the { is equivalent to the begin of the program and the } is the same as the end of the program

Comments can be placed anywhere inside C programs using /* and */. For example:

/* My very first C program */

main()

Comments cannot, usually, be nested, so:-

/* My very first C program */

main()

...is illegal.


drago@scri.fsu.edu
Jan. 1997