InterviewSolution
Saved Bookmarks
| 1. |
Which of the following syntax is used to convert any variable to its original type?(a) any_cast();(b) any_cast(variable_name);(c) (variable_name);(d) any_cast(variable_name);This question was addressed to me during an interview for a job.My question is based upon STL Container Any topic in chapter Class Hierarchies, Library & Containers of C++ |
|
Answer» RIGHT option is (d) any_cast Easiest explanation - The syntax USED to convert the any variable to its ORIGINAL TYPE is as follows: |
|