First program in c language

                      The First C  Program

                                       
   

1.Introduction⇒  C language has developed by Dennis Ritchie in 1972 at AT & T's Bell Laboratories of USA.

C is middle level language because it contain both the features of low level language. C seems so popular is because it is reliable, simple and easy to use.

2.Properties of c languge⇒ There are some important properties as given below:-

  • All the command must be written in lower case.
  • All the C statements must be terminated with semicolon(;).
  • In C program may have 1 or more then 1 function but it contain only one function. then it must be main function because the execution of every c program always started with main function.
  • C language uses compiler as a translater  .
  • All the C program always stored with .C or .cpp
3.Data type⇒ Data structure in c is given below:-

4.Variable/Constant⇒ These qualities which well you have changed during the program execution is called variable and that quantity which well you is same during the program called constant.

5. Rules for declaration variableThere are some important rules for variable declaration as given below:-
  • All the variable name must be stored with the alphabet .
  •  All the variable must be declared before they use in a program.
  • No blank space has allowed between the variable name.
  • No special symbol has allowed except understood in a variable name.
5. There are some important function:-

  • printf(); This function used to give a message on the output screen and this function used to print the value of variables etc.
  • scanf();This function gives the facility to enter the data by the user. In this function, we stored the data of variable in the memory.
  • clrscr();This function is generally used to clear the output screen. This function is clear your recent output screen.
  • getch();This function is used to pause your output screen. If you are not using this function in your program then you did not look your program result. So it is an important function who pause the output screen.  
  Q. if we want to print the 'hello' word .
ans. 
                                               


an output is:-

                     

            If you have any question then you ask in the comment section.
                                                              THANK YOU.

Comments