Interview Questions

What can I safely assume about the initial values of variables which are not explicitly initialized?

C++ Interview Questions and Answers


(Continued from previous question...)

What can I safely assume about the initial values of variables which are not explicitly initialized?

It depends on complier which may assign any garbage value to a variable if it is not initialized.

(Continued on next question...)

Other Interview Questions