A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times.
A Data type specifies the type of data that a variable can store.
Types | Data Types |
---|---|
Basic Data Type | int, char, float, double |
Derived Data Type | array, pointer, structure, union |
Enumeration Data Type | enum |
Void Data Type | void |
An Operator is simply a symbol that is used to perform operations.
A Control Statement is used to check the conditon.
The Looping can be defined as repeating the same process multiple times until a specific condition satisfies. There are three types of loops used in the C language.
An Array is defined as the collection of similar type of data items stored at contiguous memory locations. Arrays are the derived data type in C programming language which can store the primitive type of data such as int, char, double, float, etc. It also has the capability to store the collection of derived data types, such as pointers, structure, etc. The array is the simplest data structure where each data element can be randomly accessed by using its index number.