Question:

Match List - I with List - II. 

List - IList - II
A.typedef in CI.modifies the memory allocated to a variable
B.enum in CII.stores memory address
C.type castingIII.is similar to struct
D.pointerIV.redefines the name of existing data types

Choose the correct answer from the options given below:

Show Hint

Remember: typedef is just a "nickname" for a type. enum is for lists of names. Pointer is an "arrow" pointing to a location in RAM.
Updated On: Aug 6, 2026
  • A-IV, B-III, C-II, D-I
  • A-III, B-IV, C-I, D-II
  • A-III, B-IV, C-II, D-I
  • A-IV, B-III, C-I, D-II
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Concept:
• C language provides keywords and operators to manage how data types are defined, interpreted, and accessed in memory.

Step 1:
Match A (typedef in C)
The typedef keyword is used to create an alias or a synonym for an existing data type. It "redefines the name of existing data types." This matches with IV.

Step 2:
Match D (pointer)
A pointer is a variable whose value is the address of another variable. It "stores memory address." This matches with II.

Step 3:
Match B (enum in C)
An enum is a user-defined type, similar to a struct or union, used to assign names to integral constants. In the context of categorization as a custom data structure, it "is similar to struct." This matches with III.

Step 4:
Match C (type casting)
Type casting forces a variable of one data type to be treated as another. While "modifies memory allocated" is a slightly ambiguous phrase, it is the remaining pair. In dynamic memory allocation (e.g., malloc), type casting the returned void* pointer is essential to allocate and manage the intended memory block size. This matches with I.
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