Computer Programming
C Programming
C++ Programming

Describe about storage allocation and scope of global extern static local and register variables?

User Avatar
Wiki User
2011-09-12 15:38:50

Global Varible:

The variable which is declared as "Global" one : having the

preveleges to use and access that variable in any class and object(

means any where in the program) just like PUBLIC keyword in OOPS


Static Variable :

If we declare a variable as Static , then it wont have the

permission to access that variable through out the program and u

have to use it inside the class or object which u declared


All the Best


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.