Question:

Which of the following is primitive data type in C ?

Show Hint

Primitive = Built-in (int, float, char). User-defined = You build them (struct, union, enum).
Updated On: Jun 6, 2026
  • long int
  • struct
  • union
  • enum
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

C data types are categorized into primitive (basic), derived, and user-defined types. 1. Primitive Data Types: These are the fundamental types provided by the language that are not composed of other types. They include int, char, float, and double. Modifications like long, short, signed, and unsigned are considered part of these basic types. Therefore, long int is a primitive type. 2. User-Defined and Derived Types:
struct: A user-defined type that groups different types.
union: Similar to struct, but all members share the same memory location.
enum: A user-defined type used to assign names to integral constants. 3. Distinction: While struct, union, and enum allow users to define their own data structures, long int is built directly into the C compiler's keyword system to represent large integers.
Was this answer helpful?
0
0

Top CUET PG Data Science A.I Cyber Security and Computer Sci. Questions

View More Questions

Top CUET PG Programming and Data Structures Questions

View More Questions