Unit 2
Basics of C – Language:
,STRUCTURE OF “C”
PROGRAM
• C program is a collection of several instructions where each
instruction is written as a separate statement.
• The C program starts with a main function followed by the
opening braces which indicates the start of the function.
• Then follows the variable and constant declarations which are
followed by the statements that include input and output
statements.
,Sections of C Program
, The basic structure of the ‘C’
program consists of
Basics of C – Language:
,STRUCTURE OF “C”
PROGRAM
• C program is a collection of several instructions where each
instruction is written as a separate statement.
• The C program starts with a main function followed by the
opening braces which indicates the start of the function.
• Then follows the variable and constant declarations which are
followed by the statements that include input and output
statements.
,Sections of C Program
, The basic structure of the ‘C’
program consists of