1194 Views

name and describe various data types in C briefly.


Geeta Mahajan 7th Jun, 2020
Answer (1)
Shudhanshu Gupta Student Expert 7th Jun, 2020
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.
  • 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.
Best of luck.

Related Questions

Chandigarh University Admissi...
Apply
Ranked #1 Among all Private Indian Universities in QS Asia Rankings 2025 | Scholarships worth 210 CR
Amity University, Noida Law A...
Apply
700+ Campus placements at top national and global law firms, corporates, and judiciaries
Amity University, Noida BBA A...
Apply
Ranked amongst top 3% universities globally (QS Rankings)
UPES | BBA Admissions 2025
Apply
#41 in NIRF, NAAC ‘A’ Grade | 100% Placement, up to 30% meritorious scholarships | Last Date to Apply: 28th Feb
MAHE Manipal M.Tech 2025
Apply
NAAC A++ Accredited | Accorded institution of Eminence by Govt. of India | NIRF Rank #4
Sanskriti University LLM Admi...
Apply
Best innovation and research-driven university of Uttar Pradesh
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books