What are global variables in C++?
Answers
Answered by
3
Hello friend....
Here's ur answer....
♟♟♟♟♟♥️♟♟♟♟♟♥️♟♟♟♟♟
Global variables are defined outside of all the functions, usually on top of the program. The global variables will hold their value throughout the lifetime of your program. A global variable can be accessed by any function.
♟♟♟♟♟♥️♟♟♟♟♟♥️♟♟♟♟♟
Hope it helped u....☺️☺️
Answered by
0
1. Global variables are defined outside of all the functions, usually on top of the program.
2. The global variables will hold their value throughout the lifetime of your program.
3. A global variable can be accessed by any function.
I hope this helps you .
mark me as Brainlist .
❤️❤️
2. The global variables will hold their value throughout the lifetime of your program.
3. A global variable can be accessed by any function.
I hope this helps you .
mark me as Brainlist .
❤️❤️
Similar questions
English,
6 months ago
English,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
English,
1 year ago
Hindi,
1 year ago