English
Language : 

CC78K0S Datasheet, PDF (25/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 1 GENERAL
1.3 Basic Structure of C Source Program
1.3.1 Program format
A C language program is a collection of functions. These functions must be created so that they have
independent special-purpose or characteristic actions. All C language programs must have a function main which
becomes the main routine in C and is the first function that is called when execution begins.
Each function consists of a header part, which defines its function name and arguments, and a body part, which
consists of declarations and statements. The format of C programs is shown below.
Definition of variables/constants
Definition of each data, variable, and macro instruction
main (arguments)
{
statement1;
statement2;
function1 (arguments);
function2 (arguments);
Header of the function main
Body of the function main
}
function1 (arguments)
{
statement1;
statement2;
Function 1
}
function2 (arguments)
{
statement1;
statement2;
}
Function 2
User’s Manual U14872EJ1V0UM
25