Multiple choice technology programming languages

The cast operator used for casting inherently incompatible pointer types

  1. reinterpret_cast

  2. static_cast

  3. dynamic_cast

  4. const_cast

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

reinterpret_cast is used for low-level reinterpreting of bit patterns between inherently incompatible pointer types (e.g., int* to char*). static_cast is for related types, dynamic_cast for polymorphic downcasting, and const_cast for removing const/volatile.