Introduction of C language
Hello friends, I am here with the article on C language. We will have a series of C language articles. This is the introductory article of the C 🙂
This article includes following points:-
1) History of C language
2) Features of C language
3) Operators in C language
4) Data types and their categories
5) Applications of C language
1) History of C language
- C Programming language was developed at AT&T Bell laboratories in the year 1972
- C was developed by Dennis Ritchie
- It was developed to solve the problem faced by B language.
2) Features of C language
- Simple:- It is a simple language it provides a structured approach
- Machine Independent:- C language is not dependent on machine
- Middle Level language:- It has the features of both low and high level language
- Structured:- C programs follow a structured approach ie:- the programs can be divided into functions
- Rich library functions:– It has many inbuilt functionality to perform different operations
- Memory Management:- .It has the feature of dynamic memory allocation
- Additional features:– It provides features of Pointers, Recursion etc
3) Operators in C
- Operators in C is a special symbol used to perform the functions.
- The data items on which the operators are applied are known as operands.
- Operators are applied between the operands.
- Depending on the number of operands, operators are classified as follows
- Unary Operator:-
- A unary operator is an operator applied to the single operand.
- For example: increment operator (++), decrement operator (–), sizeof, (type)*
- Binary Operator:-
- The binary operator is an operator applied between two operands.
- The following is the list of the binary operators:
- Arithmetic Operators
- Relational Operators
- Shift Operators
- Logical Operators
- Bitwise Operators
- Conditional Operators
- Assignment Operator
4) Data types in C language
- Data types in C refer to an extensive system used for declaring variables or functions of different types.
- The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted
- Following are the examples of some very common data types used in C
- char: The most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers
- int: As the name suggests, an int variable is used to store an integer
- float: It is used to store decimal numbers (numbers with floating point value) with single precision
- double: It is used to store decimal numbers (numbers with floating point value) with double precision
- Different categories of Data Types:-
- Basic Data Types :-int, char, float, double
- Derived Data Type:- array, pointer, structure, union
- Enumeration Data Type:- enum
- Void data type:- Void
5) Application Areas
- C language can be used for developing Compiler
- Can be used in writing Embedded software
- C is used to implement different Operating System Operations.
- C language can be used for creating computer applications.
Thankyou friends we will meet in next article till then bye. And do comment for any quires. Once again Thankyou 🙂