Multiple choice

The keyword void is used to

  1. declare a member function that is defined in a subclass

  2. designate the absence of a type

  3. declare objects that can be modified outside of program control

  4. declare a synonym for an existing type

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

The 'void' keyword is used to indicate that a function does not return a value or that a pointer is generic (void pointer). It signifies the absence of a specific type.