Home > COMPUTER SCIENCE > Basics of C Language

Basics of C Language

Basics Of C Language

Basics Of C Language with Example Programs

C language is a high level language developed by Dennis M. Ritchie at Bell Labs USA in 1972, now called as AT and T.

Father of C language – Dennis Ritchie.

C Language is very easy to understand and implement. It is general Purpose, Structured language and high level Language.

Operating systems written in C language




Lets see Basic Hello World Program in C

#include <stdio.h>
int main()
/* Hello World program */

printf("Hello, World!");


Lets see “Hello world” Program, 

      1. #include

#include is preprocessor command tells the computer( c compiler) to inclulde stdio.h into our program before acutual compilation.

      2. int main()  

main() is function where programs starts or begin

      3. Printf

Printf is a function in c language used to print message to display on screen

Like as printf(” This is C language basics”);

      4.  /*      */

This is used for comments, compiler ignores this part  /* “Hello world” Program  */

C Tokens:

Tokens in c languages are Keywords, Identifiers, Constants, Operators, Strings and Symbols


Keywords are reserved Words cant be used as Variables, Constants and Identifiers

Keywords are written in lower case.


Identifiers are used to identify user defined elements, Variables and functions

Identifiers uses A to Z, a to z, 0 to 9 but not special character like @, $, % , #


Name itself shows meaning, fixed- doesn’t change.



String is array of characters

char fdaytalk={ ‘H’, ‘e’, ‘l’, ‘l’, ‘o’};



Special symbols are 




]  and ” , “.


Next Topic Control statements and Variables

Is This Content Useful For You?