First C program
Lets start learning of c programming. We will use TC for learning one can use gcc.Lets see our first c program screenshot
Code :-
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Hii welcome to c !!!!");
getch();
}
Here #include command includes particular .h file which is require for execution. Here stdio.h is Standard Input Output file that will provide functionality of printf(),scanf() etc.
void main() is function from here execution starts.
clrscr(); clears output window (Black Window)
printf("Hii welcome to c !!!!"); just display Hii welcome to c !!!! on output screen
OUTPUT :
0 comments:
Post a Comment