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: Jun 8, 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

We match these C programming constructs with their fundamental purposes. 1. typedef in C (A-IV): The typedef keyword is used to create an alias for a data type. It redefines the name of existing data types to make code more readable or portable. 2. enum in C (B-III): An enum (enumeration) is a user-defined data type used to assign names to integral constants. In terms of declaration and user-defined nature, it is similar to struct (though its behavior is different). 3. Type Casting (C-I): Type casting is a way to convert a variable from one data type to another. In the context of memory, it essentially modifies (the interpretation of) the memory allocated to a variable for a specific operation. 4. Pointer (D-II): A pointer is a variable that stores the memory address of another variable.
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