C programming language is well known as a middle level programming language, it lies between low
level and high level programming language, which was invented by Dennis Ritchie at AT&T Bell
Laboratories, he has also developed Unix, before developing c programming language.
Here is a fun fact, he named the programming language as C, because, the programming language
which was in trend at that time was named as ‘B’, which was even used by Bill Gates, so he named
his new programming language according to the alphabetical order.
The features of C programming language is that it is case sensitive, highly portable, fast and efficient,
and also widely used in programming OS, assemblers, compilers, network drivers and embedded
systems, moreover they are also used in the application of RTOS, 3d movie rendering and game
development along with C++ and C#.
The Structure of C, is as follows:
#1. Preprocessor Area
#2. Libraries or Header Files
#include<stdio.h>
#3. Macros
A macro is a piece of code in a program that is replaced by the value of the macro. Macro is defined
by #define directive. Whenever a macro name is encountered by the compiler, it replaces the name
with the definition of the macro. Macro definitions need not be terminated by a semi-colon(;).
#define pi 3.14
#4. Functions
Int main(){
Int a = 10, b=20, sum; #5. Variables
Sum = a+b; #6. Expressions
// Print sum #7. Comments
Printf(“%d”,sum);
Return 0;
}
Some of the limitations of C programming language are as follows:
1. It is a procedural programming language and has no OOPS concepts.
2. It is tend to limited code reuse.
3. It has no exception handling.
level and high level programming language, which was invented by Dennis Ritchie at AT&T Bell
Laboratories, he has also developed Unix, before developing c programming language.
Here is a fun fact, he named the programming language as C, because, the programming language
which was in trend at that time was named as ‘B’, which was even used by Bill Gates, so he named
his new programming language according to the alphabetical order.
The features of C programming language is that it is case sensitive, highly portable, fast and efficient,
and also widely used in programming OS, assemblers, compilers, network drivers and embedded
systems, moreover they are also used in the application of RTOS, 3d movie rendering and game
development along with C++ and C#.
The Structure of C, is as follows:
#1. Preprocessor Area
#2. Libraries or Header Files
#include<stdio.h>
#3. Macros
A macro is a piece of code in a program that is replaced by the value of the macro. Macro is defined
by #define directive. Whenever a macro name is encountered by the compiler, it replaces the name
with the definition of the macro. Macro definitions need not be terminated by a semi-colon(;).
#define pi 3.14
#4. Functions
Int main(){
Int a = 10, b=20, sum; #5. Variables
Sum = a+b; #6. Expressions
// Print sum #7. Comments
Printf(“%d”,sum);
Return 0;
}
Some of the limitations of C programming language are as follows:
1. It is a procedural programming language and has no OOPS concepts.
2. It is tend to limited code reuse.
3. It has no exception handling.