Introduction to C programming

C Programming


C programming is a powerful general-purpose programming language.
C is the first complete programming language so it is know as a mother of programming language.

For a new programmer, it is good to start with C Programming.




C Programming History

  • C is a programming language developed at AT&T (American Telephone & Telegraphy) Bell Laboratory of the USA in 1972, designed and written by Dennis Ritchie.
  • In earlier days, programming were written in assembly level language. So, it had happened to write very big programs to perform specific tasks using assembly code.
  • C language features were derived from an earlier language called “B” (Basic Combined Programming Language - BCPL).
  • B language did not support some features like data types and structure etc. So, this was a drawback of B language. So, Dennis Ritchie developed C language by keeping most part of B language and adding many features that produced powerful and effective output.
  • So, C language was invented for implementing UNIX operating system. Most of the UNIX components were rewritten in C.
  • In 1978, Dennis Ritchie and Kernighan published the first edition “The C Programming Language” and commonly known as K&R C.

Why C ?
  • C is a base of the programming language.
  • C helps you to know the structure of the program.
  • It helps you to learn syntax which can be used in C++, Java etc.
To run C programming, You should download a software Dev C++.
Then, write  C program code and then save the file with extension .c and run the code.

To download Dev C++, go to this link DEV C++

Let's begin with the first program


  • Once you download and install the software open it you will see something like this...


Note: Please click on the image to get clear view. 

  • Now Click on file and you will see the page like this.


  • Now click on new and then source file or click ctrl + N to open new source file.


  • This page is displayed.



  • And write the following code :
#include<stdio.h>
int main()
{
        printf("This is my first programming");
        return 0;
}



  • Save this code as myfirstprogram.c 
  • To run this program click on execute and click on compile and run.
  • Following are the screenshots of the programm.




If you have any queries contact via email : Whopawan@gmail.com
Thank you for visiting my blog.

Subscribe to receive free email updates:

0 Response to "Introduction to C programming "

Post a Comment