Syntax of C-program
Syntax Of C program includes:
- Header File
- main() Function
- Curly Bracket
- Instructions or statements
#include<header.h>
int main()
{
Instructions statement1;
Instructions statement1;
}
1.Header File :-
Header File is the file which is stored in the GNU. Header file includes the macro definitions of the functions like printf() , scanf() and more. Header files like <stdio.h> , <conio.h> , <math.h> , etc.
2.main() function:-
main() function is the important part of the c program. Every program starts running/executing the program from main function only.
3.Curly Brackets:-
"{" are the opening curly brackets from where we can start writing the variables and the instructions.
"}" are the closing curly brackets at this brackets the program ends or the every function end up with these brackets.
4. Instructions:-
Instructions or the statements are the statements used in the programs like the "printf()" instruction, Arithmetic instructions and more.
Comments
Post a Comment