How to writes in C program in Programming ?
STEP 1: Writes a header file
STEP 2: Writes a Main() { main() it called is main function}
STEP 3: Writes a main() after curly brace {
STEP 4: Writes a statement inside the Main()
STEP 5: If requires takes return statement
STEP 6: after statement Closed the curly brace }
HEADER FILE
Header file more type in C program . It major used in header file this C program is #include<stdio.h>.
#include<stdio.h>
# means preprocessor directive .
include means user and system are linking together
<> it shows inside the less than between greater than is which type of header file
stdio std means standard ,i means input & o means output
.h extension file of C
Main()
main() is treat all statement inside the curly braces {} in C program.
{
it show the start the of the program C .
STATEMENT
Writes a code inside the curly braces{} as want you required of C program.
Return
if require the C program.
}
Closed the statement of C Program.
FOR EXAMPLE OF BASIC PROGRAM IN C :
#include<stdio.h> // this is a header file
main() // this is predefined function
{ printf("hello friend your first program in C "); // statement
return 0; //pass the return value
}
FOR EXAMPLE OF BASIC PROGRAM IN C :
#include<stdio.h> // this is a header file
main() // this is predefined function
{ printf("hello friend your first program in C "); // statement
return 0; //pass the return value
}
No comments:
Post a Comment