Learn C Programming in 3 days ( First C program)

 First C Program

#include<iostream.h>  // header file iostream.h and stdio.h
int main()                      // main function start from here
printf(“hello,worldn”);       // using to show output of a program (printf contain in stdio.h)
    return 0; 
(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.
Memory boost tips

Releated Post

Leave a Reply

Your email address will not be published. Required fields are marked *