Interview Questions

What’s the best way to declare and define global variables?

C++ Interview Questions and Answers


(Continued from previous question...)

What’s the best way to declare and define global variables?

The best way to declare global variables is to declare them after including all the files so that it can be used in all the functions.

(Continued on next question...)

Other Interview Questions