Sample program of C language
An application/program of C language can be written into any text editor such as notepad,wordpad,MS-DOS etc with extension “.c”.
#source code
A program is said to be source code of C language when it contains following properties:-
1) an extension of file must be “.c”.
2) a reserve word /keyword written into file must be supported by C compiler.
Example
Write a program to display a message “Welcome to c”.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(“WELCOME TO C LANGUAGE”);
getch();
}
#source code
A program is said to be source code of C language when it contains following properties:-
1) an extension of file must be “.c”.
2) a reserve word /keyword written into file must be supported by C compiler.
Example
Write a program to display a message “Welcome to c”.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(“WELCOME TO C LANGUAGE”);
getch();
}
Comments
Post a Comment