0

What is local variable ?

27th Jul 2017, 10:11 AM
Serious Sam
Serious Sam - avatar
2 Réponses
+ 2
The variables whose scope is available within the declared function. Ex - void func(){ int i,h; //some code } Here i and h are local variables for func whose value is present till the function is running. It's value or variable cannot be used by main function unless it's values is passed by return.
27th Jul 2017, 10:34 AM
G.S.N.V. Suraj
G.S.N.V. Suraj - avatar
0
Thnx
27th Jul 2017, 10:35 AM
Serious Sam
Serious Sam - avatar