C++ Programming Question: Download Questions PDF
What is the best way to declare and define global variables?
![C++ Programming Interview Answer C++ Programming Interview Question](https://globalguideline.com/public/images/interview/24.png)
Answer:
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.
Download C++ Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
How do you decide which integer type to use? | What does extern mean in a function declaration? |