First Program

Write a program to print something on the screen?


#include<stdio.h>   //This line is used to include the header file <stdio.h> because it contain the definition of methods that we will use in program  

void main()   //Every program starts from main method so it must be declared (void means the method returns nothing)

{                //Inside this curly braces all your codes should be written

printf("This is my First Program");        //printf is method used to print something on screen.

}                          //End of main method


This is my First Program

Sumit Verma @sumitverma
24 Apr 2017 12:23 am

Thanks for sharing !!