Multiple choice

Which of the following is/are false about typedef keyword in C++?

  1. It is used to create an alias for a known data type.

  2. typedef keyword can be used with unsigned char data type.

  3. typedef keyword cannot be used to define an alias for a function.

  4. Both (2) and (3)

  5. None of these

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

This is not true as we can also use typedef keyword to define an alias for a function in C++ and it can be used as function pointer.