Sunday, 22 March 2015

First Program in C





After installing the software of C language,we will start with our first program which will show how to print a string on Display Screen or Console.





Coding:


/* Hello World program */

#include<stdio.h>
#include<conio.h>
void main()
{
    printf("Hello World");     //printf is used to print the string on console
    getch();                  

}



Output:




0 comments:

Post a Comment