Multiple choice

Which of the following user defined types in C++ is used to give new names to existing data type and allows the user to declare an identifier to represent an existing data type?

  1. Structure

  2. Typedef

  3. Enumeration

  4. Union

  5. Class

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This user defined type in C++ is used to give new names to existing data type and allows the user to declare an identifier to represent an existing data type.