1193 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

Amity University, Noida Law A...
Apply
700+ Campus placements at top national and global law firms, corporates, and judiciaries
UPES Integrated LLB Admission...
Apply
Ranked #28 amongst Institutions in India by NIRF | Ranked #1 in India for Academic Reputation by QS University Rankings | 16.6 LPA Highest CTC
Great Lakes PGPM & PGDM 2025
Apply
Admissions Open | Globally Recognized by AACSB (US) & AMBA (UK) | 17.3 LPA Avg. CTC for PGPM 2024 | Extended Application Deadline: 10th Jan 2024
Amity University Noida B.Tech...
Apply
Among Top 30 National Universities for Engineering (NIRF 2024)
ISBR Business School PGDM Adm...
Apply
250+ Companies | Highest CTC 16 LPA | Average CTC 8 LPA | Ranked as Platinum Institute by AICTE for 6 years in a row | Awarded Best Business School...
Chandigarh University Admissi...
Apply
Ranked #1 Among all Private Indian Universities in QS Asia Rankings 2025 | Scholarships worth 210 CR
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