Interpreters are used to check the code line by line and it is used to execute computer programming languages such as JavaScript or Python at runtime. The incorrect syntax will cause the code to fail.
Therefore to become a good programmer you should pay close attention to syntax of programming languages so that you can run any kind of programs successfully.
Syntax of C language is given below
1.It stands for standard input output.
2.It is a collection of predefined functions/methods.
3.It is also called library of c.
include
To include the header file into the program.
#
1.It is called preprocessor.
2.It includes the library of c into the program before the execution of program.
conio
1.It stands for console input output.
2.It is used to show the output on console window.
void
1.It is a keyword.
2.It indicates that no one value is being returned by the function.
3.If we use any other keywords like int or float or char etc in place of void then we should use return keyword.
main
1.It is the function which is called the entry point of any program.
2.The execution of any program starts from the main function.
3.If in a program we use only one function then it should be main function.
clrscr
1.It stands for clear screen.
2.It is a predefined function which is used to clear the output screen.
3.It acts like a duster on output screen.
4.clrscr() function is a pre-defined function in the conio.h header file.
printf
1.It is a predefined function which is use used to print data or information on to the output screen.
2.printf() function is a pre-defined function in the stdio.h header file.
getch
1.It is a predefined function which is used to hold the output screen.
2.It acts like a duster on output screen.
3.It is defined in the conio.h header file.
0 Comments