Structure of a C program
Every C program has one or more functions in it. A program always begins by executing the main() function. Each function contains: • A function heading: This consists of a function name followed by an optional list of arguments enclosed in parentheses. • A list of argument declarations, if arguments are included in the heading. Arguments are also called parameters. • A compound statement: This comprises the remainder of the function. • Each compound statement is covered within a pair of braces { }. The braces may contain elementary statements called expression statements. Each expression statement must end with a semicolon (;). ➡️Brief structure Constant declarations main() function /* comments*/ variable declarations executable statements ➡️Format of a C Program [constant declarations]; [external variable declarations]; returntype main() ...