Frist c Program
Before beginning the abcd of C language, you have to figure
out how to compose, assemble and run the primary c program.
To compose the principal c program, open the C support and
compose the accompanying code:
#include
<stdio.h>
int main(){
printf("Hello C Language");
return 0;
}
|
int main() The main() function is the entry point of every program in c language.
printf() The printf() function is used to print data on the console.
return 0 The return 0 statement, returns execution status to the OS. The 0 value is used for successful execution and 1 for unsuccessful execution.
How To compile and run the c Program
There are 2 different ways to order and run the c program,
by menu and by alternate route.
By menu
Now click on the compile menu then compile sub menu to compile the c program.
Then click on the run menu then run sub menu to run the c program.
By Shortcut
Or, press ctrl+f9 keys compile and run the program directly.
You will see the following output on user screen.
You can view the user screen any
time by pressing the alt+f5 keys.
Now press Esc to return to
the turbo c++ console.
No comments:
Post a Comment