Match the following casting operator in C++ language with its function.…
SSC Scientific Assistant 2022
Match the following casting operator in C++ language with its function.
Casting operator | Function | ||
|---|---|---|---|
I | dynamic_cast | 1 | used for any standard conversion of data types |
II | static_cast | 2 | used to change one type into a fundamentally different type |
III | reinterpret_cast | 3 | to perform casts on polymorphic objects |
- A.
I-3, II-1, III-2
- B.
I-1, II-2, III-3
- C.
I-2, II-1, III-3
- D.
I-1, II-3, III-2
Attempted by 83 students.
Sign up free to check your answer
Sign up freeLoading lesson…

