Monday, July 8, 2019

First Program of C


Program:



Program to print hello world!


#include<conio.h>
#include<stdio.h>
void main()
{
          clrscr();
          printf(“H E L L O   W O R L D”);
          getch();
}

    Output


output:- first progrtam of c



# :-Preprocessor directory
include:- "include" is key word use to include header files.
main: "main" is main function ,on the execution of program compiler first find the main function in program.
clrscr:- "clrscr" is a function that use to clear our console window.
printf:- "printf" is a function that use to print something on console window.
getch:- "getch" is a function that use to hole the console window.

Previous Topics


0 comments: