C tutorial for beginners




C programming language 

__Definition______________________________

is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Richie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.
________________________________________

__General Rules___________________________


  • C program is the set of statement written in C programming language. Each program should follow the  rules to make your code working everywhere
  • All printf(), scanf() or any other function calls.All declarations like variables, constants, function, structures must be terminated by semicolon.
  • All expressions must be terminated by the semicolon (;)
  • Keywords are the reserved words in the compilers and you cannot use them for other purposes.
  • C language is cases sensitive programming language. Here, small case identifiers and uppercase identifiers are different. So, if you have declared a variable with name Num then you must have to use Num everywhere. You cannot use num, NUM etc instead of Num
  • Same as keyword, library functions are also declared in the header files and you must have to include header file in the program. For example, if you are using sqrt() function to find the square root of any number, you will have to include math.h header file  example =  #include <math.h>
  • Each function involves including the header file that contains the function
  • fonctions printf(), scanf()  are present in the header file "stdio.h "
example ::: 

#include <stdio.h>

int main(){

printf("hello world");

return 0;
}
________________________________________


-----------------------------------------                     -----------------------------------------------------------------
If you have any problem learning C language, just ask us on Facebook or any social networking site we are here to help
------------------------------------------------                                    -----------------------------------------------

In the next lesson we will enter the second part of the C language and do not forget our follow-ups on Facebook and Twitter

No comments:

Post a Comment

Pages