Multiple choice

Which of the following keywords is used to change the name of an inbuilt datatype during compilation?

  1. #define

  2. rename

  3. typedef

  4. #pragma

  5. const

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

The typedef keyword can be used to give a new name to a data type. For example, typedef int number; The above statement will change the name of the 'int' type to 'number'. Therefore to declare an integer varaible we can also use the statement : number age;