Introduction to C Programming Language - Introduction , Basic and History

What is C Programming ??


C Programming language is the most popular and simple procedural programming Language. It is a Low-level Language and is used in various fields of Modern Day World.

The main advantages of c programming language over other languages of Modern World are that is c has access to various low-level memory and uses a simple set of keywords with a clean environment and therefore C is suitable for writing the Operating system(majorly windows )  and many others complex to simple programs.


what is the c programming

Therefore, Most students use to learn c as their first language in order to become an expert programmer or to go to the field of computer science.

Hope many beginner get there answer of What is the c Programming? .  Now, move to the other things

History of C Programming Language


Before C programming Language came to the market there were many programming languages in the market like Algol, Cpl. BCPL and b.

In, fact Algol is known as the father of programming languages and in around 1960 Algol is largely used in other European and western countries.

In 1967 also, Martin Richards released a new programming language known as BPCL(basic combined programming languages ).

Finally in 1972 Dennis Ritchie one of the computer scientist and genius of that time find fault in every other language and thus he created his own programming language in the Bell Laboratories  known as C

Development of Various languages:-


1.PASCAL-1954

2.COBOL-1957

3.ALGOL-1960

4.CPL-1963

5.BCPL-1967

6.B-1970

7.C-1972

8.C++-1980

9.JAVA-1990

10. . NET-1991

11. PHP–1993

Structure of C Programming Language 

C Programming Language is indeed an interesting programming Language and lets me take you through the structure of c programming language.

The basic structure of a Programming Language includes the 

1. Header-files 

The first thing we write in the C program or any other programming language is known as Header files.

In C programming language header files have an extension of .hand it basically contains the code of various keywords or functions that used in the rest of the program.

 Two most popular header files of C are 

Stdio.h
conio.h

Syntax  of writing headerfile :

#include
example: #include
                 #include


Other popular  header files are 

#include           (used for common mathematical functions )
#include         (used for string handling functions )
#include          (defines various numerical problems and memory allocations )
#include              (used for altering date and time )

2. Main 
The next thing in the structure of c is void main but in some compiler they used the only int main and it is basically an area where we write our code or let say the body of code lie inside the main.

Syntax:

int main()
{
code;
}

3. Variable Declaration
The next thing in the structure of  C programming Language is to declare the variables.

Variables are used to declare the type of data you are entering for example if you enter a name it is of datatype char and if you enter an integer number it is of datatype int.

Syntax :

int main ()
{
int x ;
}

4. Body 

It is the area in a program where we write our code or perform various programs like searching sorting, calling a function, etc.

 Syntax :

int main()
{

int x=12;
int y=13;
int c;
c=x+y;
printf("%d" , c);

}

5. Return Statement 
These are used to properly close the main function and it work is to basically return the value to the main that you have used in your body section of the code.

If you have no return value that is in void case there is no return statement.

Syntax:

return 2;


Important terms about C programming language 

Program :

A program is a collection of a set of instructions  to be executed in order to produce the output
using a special type of software or compiler.

Algorithms 

The programmer begins the programming process by analyzing the problem, breaking it into the manageable pieces and developing the general solution of each piece called an algorithm.

Flowchart 

The flow chart is the visual presentation of the flow of control through an information processing system, the operations performed within the system and the sequence in which they are performed.

Compiler 

A compiler is a special type of software that is used to convert the source code into the machine code.
It is also used to detect the error at the same time in the compilation of the program.

If you want to know about Best  C compiler then read this post "Top Ide for C and C++ Developers - 2019"

Features of C programming language  :



  • The c programming language is very simple and easy to understand 
  • It is very flexible 
  • It is a platform-independent programming language that is it will be run on any operating system 
  • It has the error detection ability 
  • It is a very efficient programming language 


Applications of C programming language :



  • Used for Software Development 
  • Used for graphics and animation 
  • Used for developing games 
  • Used for developing fifth-generation computer like robots 
  • Used for  project design/development 
  • Used for real-time development 

If you think that anything written here is inappropriate or you want to ask any query you can ask in comments. 


















































































































































































































Introduction to C Programming Language - Introduction , Basic and History Introduction to C Programming Language - Introduction , Basic and History Reviewed by Digital Roy on January 01, 2020 Rating: 5

No comments:

Powered by Blogger.