Structure Of C
#include<stdio.h>
int main ()
{
printf("WELCOME TO C PROGRAMMING");
return 0;
}
1. #include<stdio.h>
This is the main header file preprocessor function, which
preprocesses standard input and output header files from the C library
repository, such as stdio.h, before compiling the programme.
2. int main()
This C statement, like most programming languages, is the
main function, which is the point where the programme execution begins. Once
the primary main () has been executed, all other methods and functions are
performed.
3. {
Curly braces are a type of bracket that can be seen in any
computer language, not just C. This represents the start of a method or
function definition.
4./* explanation of C code
*/
The text inside the /* and */ tags will be considered as
comments and will not be executed or compiled. This is to provide the coder
with a clear knowledge of the code and its application or use.
5.printf
The
output is printed to the console screen using this C command.
6. return 0
This C function returns 0 after terminating the C programme
or main function.
7.}
The function or method block is closed with these curly
braces.