First in C programming

               First C Program 

To write the first c program, open the C console and write the following code:
  1. #include <stdio.h>    
  2. int main(){    
  3. printf("Hello C Language");    
  4. return 0;   
  5. }  
#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:




autobreakcasecharconstcontinuedefaultdo
doubleelseenumexternfloatforgotoif
intlongregisterreturnshortsignedsizeofstatic
structswitchtypedefunionunsignedvoidvolatilewhile

    

               Thank you 

Comments

Post a Comment

Popular posts from this blog

Introduction of C Language

Computer generation