Learn C Programming in 3 days ( First C program)

 First C Program


#include<iostream.h>  // header file iostream.h and stdio.h
#include<stdio.h>
int main()                      // main function start from here
printf("hello,world\n");       // using to show output of a program (printf contain in stdio.h)
    return 0; 
   }


CREATE PROGRAM IN C HELLO WORLD




(if you are using Dev C++ then you no need to write iostream.h, this is inbuilt)

program contains:


stdio.h ---- it is used for allow to use printf and scanf in a program.

int main()  {        content        } ------- Whatever, you write in this is come under your main program.

return -------- Use to tell what you want to return at the end of a program, in program it return 0 to                             operating system.

Comments