0

What do you mean by global and local in c++

22nd Oct 2016, 4:28 PM
rahul sharma
rahul sharma - avatar
5 Réponses
+ 2
I suppose you are referring to the scope? Local: the resource is limited to the block in which it is defined. Global: the resource is accessible from anywhere. If possible, don't use global variables.
22nd Oct 2016, 4:37 PM
Zen
Zen - avatar
0
Yeah right zen my professor too says that dont use global preferably
22nd Oct 2016, 4:42 PM
rahul sharma
rahul sharma - avatar
- 1
c++ basic laguage tu propose made by game progarm
22nd Oct 2016, 4:35 PM
[No Name]
[No Name] - avatar
- 1
thk bto
22nd Oct 2016, 4:39 PM
[No Name]
[No Name] - avatar
- 1
bro
22nd Oct 2016, 4:39 PM
[No Name]
[No Name] - avatar