C++ Interview Questions
C++ Interview Questions
C++ Interview Questions
16) Explain about explicit conversion within C++ and its supportability?
This explicit conversion is required where there is different interpretation on value. There
are two different types of explicit conversion such as c like casting and functional. This
explicit conversion can be applied indiscriminately on the code which significantly
increases errors during run time.
20) I am getting an error at runtime for an oversized array but it never shows it as a fault
during debugging?
In C++ it is very correct syntactically to declare over sized array. It also never shows you
any error during compilation but it shows error during run time. The answer lies in
pointers. This problem can be mitigated if we can manually specify the memory location
by using a reference operator. Automatically pointers assign the variable to a certain
location and when it tries to extract during extraction it fails thus creating error.