name and describe various data types in C briefly.
Answer (1)
Hello.
There are two type of data type in C language
One is primary data type and second is derived data type primary data type and those which are fundamental these include Int, float, char, void.
And derived data types those which are just similar to the primary data type but these are are created in a group in order to make it feasible to store more data, this includes array, Union, structure and pointer etc.
There are two type of data type in C language
One is primary data type and second is derived data type primary data type and those which are fundamental these include Int, float, char, void.
And derived data types those which are just similar to the primary data type but these are are created in a group in order to make it feasible to store more data, this includes array, Union, structure and pointer etc.
- Int : this data type is used to store integer value.
- Char : this data type is used to store character value.
- float : this data type is used to store floating value.
- void : this data type basically means there is no value it is used to declared the return type of any function when function returns nothing.
- Array : it is simply a data structure which is known as a sequence of any particular data type to store data of the same data type.
- Structure : it is user defined data type which is used to store the data of different data type together but in different memory location.
- Union : this is user defined data type which is used to store data of different data type together in same memory location.
- pointer : it may be considered as a special type of variable which is used to store the address of another variable.
1 like
Comments (0)
Related Questions
describe types of communication?
903 Views