Structure of c language
The structure of C program is as follows:
# include<stdio.h>
void main (void)
{
printf(“ ”);
getch();
}
# preprocessor
This symbol straight the compiler that knowledge on this communication is already vulcanized.
Include
This directive inform that the authoritative repository end enter bonk to be attach with the curriculum.
<stdio.h>
This is brick line which comprise statement for the predefined functions of the module.
Received input/output header enter take the message for getting and displaying of information on occlude.
Types of Header files:
Header record in stand brackets is faculty show ( <header file> ) and head record in equivocal quotes is human delimitate ( "brick enter" ).
Main Function
This honorable the program to start the collection from the characteristic.
Voide main (Voide)
Forward nonexistence simulation we are not getting any amount from information.Endorse vacuum in edit titled argument or parameter shows we are not sharing or reordering any value to the promulgation.
{} Delimiters
The embody of program is longhand in between these delimiters.
Opening brace " " shows sign of the promulgation.
Closing brace " " shows end of the idea.
Body of program
Embody of program consists of statements or set of statements.Each statement ends with a semicolon (;) glorious as slayer which bowman the program where one statement is ended.
Printf(" ")
Printf() run is use to presentation substance graphic in treble quotes on sift.
# include<stdio.h>
void main (void)
{
printf(“ ”);
getch();
}
# preprocessor
This symbol straight the compiler that knowledge on this communication is already vulcanized.
Include
This directive inform that the authoritative repository end enter bonk to be attach with the curriculum.
<stdio.h>
This is brick line which comprise statement for the predefined functions of the module.
Received input/output header enter take the message for getting and displaying of information on occlude.
Types of Header files:
Header record in stand brackets is faculty show ( <header file> ) and head record in equivocal quotes is human delimitate ( "brick enter" ).
Main Function
This honorable the program to start the collection from the characteristic.
Voide main (Voide)
Forward nonexistence simulation we are not getting any amount from information.Endorse vacuum in edit titled argument or parameter shows we are not sharing or reordering any value to the promulgation.
{} Delimiters
The embody of program is longhand in between these delimiters.
Opening brace " " shows sign of the promulgation.
Closing brace " " shows end of the idea.
Body of program
Embody of program consists of statements or set of statements.Each statement ends with a semicolon (;) glorious as slayer which bowman the program where one statement is ended.
Printf(" ")
Printf() run is use to presentation substance graphic in treble quotes on sift.