Multiple choice

Which of the following cast operators is used to override volatile attribute of variable?

  1. dynamic_cast

  2. static_cast

  3. const_cast

  4. reinterpret_cast

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

The const_cast is used explicitly override const and/or volatile attribute of variable. Hence, this is the correct answer.