Computer Science, asked by koranisansha9303, 1 year ago

What are global variables in C++?

Answers

Answered by twinkle1125
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 braner
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 .
❤️❤️
Similar questions