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.
0 comments: