C Programing

C

is an alphabet in  English but it has pretty much importance in the computer language and if you are a beginner then probably it is best to learn C. As a beginner you may have many questions related to C so let's get started and I will try to answer them all.....

What is "C"?

c is portableeasy to understand high-level programming language which enables us to write a program that can be executed by the computer.

 

Why C is portable?
C is a portable language because nearly every computer has a C compiler in it and the syntax of C is very similar to syntaxes of C++, java, etc.

Easy to understand as well as high level*  programming language.

high-level language(HLL) - are those languages that can be understood by humans. 

C language is very close to the English language and can be understood by human beings and it is used to do programming so it is termed as easy to understand as well as a high-level programming language.

History of C. when, where, why and by whom?

C is one of the oldest programming languages. It was made 23 years before java and 7 years before c++. C is like the father of java. It was mainly developed to write an operating system. C is a compiler-based language whose compilers are mostly written in C. One thing which is out of topic but you should know that the popular programming language PYTHON is written in C language.

When, where, by whom & why?

C was developed by Dennis M. Ritchie in 1972 at the Bell Laboratory, California to develop the Unix operating system. Ken Thompson also contributed to develop the C programming language so we can say that Ken Thompson and Dannis M. Ritchie are the founders of  C programming language.

Why you need to learn C?

As mentioned above "C is the mother of all programming languages " nearly all the programming languages are related to C somehow. Syntaxes of all programming languages are similar to the syntax of C and C is too close to High-level language(HLL) so it can be understood by beginners very easily therefore if you want to be a programmer so learning C is just an awesome step towards it.  

Features of C.

  1. Robust language. 

  2. Fast and efficient.

  3. Function rich library. 

  4. Portable.

  5. Easy to understand

1. Robust language:  

Robust simply means STRONG. C is a robust(strong) language because it uses strong memory management and it doesn't crash during compilation.

2. Fast and efficient. 

Programs written in C are fast and efficient.


3. Function rich library. 

C has many builtin functions which can be used for writing any complex program.

4.Portable: 

Portability in C means the program written in one computer can also be executed to another computer without any modification.

5. Easy to understand: 

As C is very close to HLL so it is easy to understand the programs written in C.

What can we do with C?

Since Dannis Ritchie developed the UNIX operating through C language so we can say that with the help of C language we can do(create) all things related to software. C is a hardware-based language which makes it faster than other languages so compiling programs is swifter and efficient.

Here are the some examples of what we can create with  C.

* Operating system
* text editor
* calculator 
* language compiler
   and many more things

Writing a program in C.

Writing your very first program in C is quite interesting but you have to learn the "C" language.
Here is an example of a simple program in c.

 #include<stdio.h>

#include<conio.h>

void main()

{

printf("hello world");

getch();

}                           

           

The output will be

hello world




 C program basically consists of the following parts −


  • Preprocessor Commands
  • Functions
  • Variables
  • Statements & Expressions
  • Comments

    Data Type in C

    Constants & Literals

    d

    Post a Comment

    0 Comments