Wednesday, 30 September 2015

An intro of C language

Hi Guys,
          As you already know me, This and next several blogs provides you the knowledge of the C language. C is a programming  language which is broadly used in programming of many programmes. The games which you play, the mobile apps which you run, the softwares which you use in your PC. These all are programmed using C language. Therefore, one who has the complete knowledge of C able to design the coding for any program.

        Now let start our learning tour to the C. First of all you will need a software or compiler to run your program. There is no effect to use any particular program or software, but widely used software for coding is Eclipse & Codeblocks.  but I prefer codeblocks for it. For android platform you  can  download the app C4droid. 

        Now let us start to some basic concepts and techniques for design a program. The C language contains formats which can be followed in starting any program. First of all, the use the directive  #include . After it we have to introduce a standard library function in between the  < >.  Now discuss the several standard library function. The Ist library function is <stdio.h>.  It tells the compiler standard Input/Output function. The second is <stdlib.h> this function directly tells the compiler to the standard library function. Look, Computer doesnot understand our language. Thus, we need the compiler. It convert our programming language into that language which computer can understand.
3rd one is <conio.h>. Other library functions we will discuss later as we need at that place. There many library functions defined in C but practically, we need few library functions by which any program can be created.

       After defining the include directive , move in the next line and give a function name as main().
This is a necessary keyword we have to use & a pair of parentheses () just after the keyword main.
Than start the curly brace and start writing your coding(which we can learn later in this blog).
After writing your coding , end it with a curly brace, now its ready to compile and run your program.

     In next post, we will design our 1st program. For any queries, you may ask from me on goyalaayush1712@gmail.com.