C Programming
#include<stdio.h>#include<conio.h>
void main()
{
printf("Welcome to the world of Computer Science.\n");
printf("No Doubt It's field is very big.");
getch();
}
For Compile: Alt+f9
For Run : Ctrl+f9
Output :
Welcome to the world of Computer Science.
No Doubt It's field is very big.
Note:-
- #include<stdio.h> and #include<conio.h> are preprocessors that contains the defination of related function like printf() and getch()respectively.
- Our program starts execution from main function and it must be with pair of { ie. body }.
- main function is user defined function but exception is that it called by c compiler by default.
- All the statement of main function will be within pair of curly braces({}).
- All the statement will be terminated by semi colon(;). getch(); waits user untill press any key.
Basics of C