First in C programming
First C Program
To write the first c program, open the C console and write the following code:
To write the first c program, open the C console and write the following code:
- #include <stdio.h>
- int main(){
- printf("Hello C Language");
- return 0;
- }
#include <stdio.h> includes the standard input output library functions. The printf() function is defined in stdio.h .
int main() The main() function is the entry point of every program in c language.
To compile and run the c program, by menu and by shortcut.
By shortcut key
Press ctrl+f9 keys compile and run the program directly.
User will see the output on the screen by pressing the alt+f5keys.
Now, press Esc to return the turbo c++ console.
printf and scanf is in lowercase because it is a keywords.
Keywords is a set of reserved words. All keywords are basically a sequence of characters that have a fixed meaning.There are only 32 reserved words (keywords) in the C language.
A list of 32 keywords in the c language is given below:
Thank you
To compile and run the c program, by menu and by shortcut.
By shortcut key
Press ctrl+f9 keys compile and run the program directly.
User will see the output on the screen by pressing the alt+f5keys.
Now, press Esc to return the turbo c++ console.
printf and scanf is in lowercase because it is a keywords.
Keywords is a set of reserved words. All keywords are basically a sequence of characters that have a fixed meaning.There are only 32 reserved words (keywords) in the C language.
A list of 32 keywords in the c language is given below:
auto | break | case | char | const | continue | default | do |
double | else | enum | extern | float | for | goto | if |
int | long | register | return | short | signed | sizeof | static |
struct | switch | typedef | union | unsigned | void | volatile | while |
Thank you
Keep it up anjali....
ReplyDeleteWell done Anjali
ReplyDelete