writing first program in c-
ok now lets try to write a basic programme;
#include<stdio.h>
main()
{
printf(" manitej\n");
}
now lets understand the programme step wise
#include is a pre-processor directive it tells
the compiler to include the files in the header files
- main is the main function every programme must have a main function.compiler starts compiing from main function
- {} in this we write user defined functions
- printf statement is used to give input or output to user
Comments
Post a Comment