C programming language

 

History of 'C' Programming Language

C programming is a popular computer programming language which is widely used for system and application software. C programming language is a structure oriented programming language. C was developed at Bell Laboratories in 1972 by Dennis Ritchie. C programming features were derived from an earlier language called "B"(BCPL language). C language was invented for implementing UNIX operating system. In the year 1978, Dennis Ritchie and Brian Kernighan published the first edition "The C programming language" and commonly known as K&R C. In 1983, the ANSI (American National Standards Institute) established a committee to provide a modern, comprehensive definition of C. The resulting definition, the ANSI Standard, or ANSI-C was completed late 1988. Today's most popular Linux OS and RBDMS MySQL have been written in C.

C programming



The 'C' Compiler

The source code written in the source file is the human-readable source for your program. it needs to be compiled, to run into machine language so that your CPU can actually execute the program as per instructions were given. this C programming language compiler will be used to compile your source code into the final executable program. there are many compilers available on the internet and sold commercially in stores or online.

Top 10 C/C++ Compilers and IDEs

1.Eclipse 
5.C Free

Features of 'C' Language:
1. Powerful.
2. Low-level features.
3. High-level features.
4. Portability.
5. Bit manipulation.
6. Modular programming.
7. Reliability.
8. Flexibility.
9. Interactivity.
10. Efficiency and effectiveness.


C programming
                                             
Some Examples:

Example-1

                         #include <stdio.h>
                     int main ( )
                  {
                     /*my first program in C */
                     printf ("Hello, India!  \n");

                       return 0;
                  }


Output would be-       "Hello India"


A   C program basically consists of the five parts ...
1.Preprocessor Commands: The first line of the program  #include <stdio.h> is a preprocessor command which tells a C compiler to include stdio.h file before going to actual compilation.

2.Functions: The next line int main ( ) is the main function where program execution begins.

3. Variables: The next line /*........*/ will be ignored by the compiler and it has been put to add additional comments in the program. So such lines are called comments in the program.

4. Statements and Expressions: The next line printf(.......) is another function available in C which causes the message "Hello, India!" to be displayed on the screen.

5. Comments: You will be able to see "Hello India" printed on the screen.

Post a Comment

Previous Post Next Post