Introduction to C Language
C Language
C is a procedural programming language .
C was originally developed by Dennis Ritchie at AT & T Bell Laboratories & It was designed to run on a PDP-11 with a Unix Operating system.
It is a structured programming language .
C is often termed as a middle level programming language because it combines the power of a high level language with the flexibility of a low level language.
C can be used for a whole range of applications with equal ease and efficiency.
These are several features which make C a very suitable language for writing system programs :-
1. C is a machine independent and highly portable language.
2. It is easy to learn as it has only as few as 32 keywords.
3. It has a comprehensive set of set of operators to take business as well as scientific applications with ease.
4. C language allows manipulation of BITS, BYTES, and ADDRESSES at hardware level.
5. It has a large library of functions.
The C program code for this function looks like :-
Int FindMax ( int a, int b )
{
statement 1;
statement 2;
return (p); // p is the integer value returned by .
//this function.
}
Data Types
Data type is used to define the type of value to be used in a programme.
Based on the type of value specified amount of required bytes will be allocated to the variables used in the program.
Three main types :-
1. Primary Data Type.
2. Derived Data Type.
3. User Defined Data Type.
No comments: