FIRST C PROGRAMME

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
  1. main is the main function every programme must have a main function.compiler starts compiing from main function
  2. {} in this we write user defined functions
  3. printf statement is used to give input or output to user

Comments