Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between static and non-static variables

Answer Posted / achal ubbott

The above answers are correct. A local static variable is
stored in heap. But a local variable is stored onto stack.

A Global variable made static can't be accessed from a
function outside the file using extern. So it limits the
scope.

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is searching? Explain linear and binary search.

946


Explain how to initialize a const data member.

1071


What is flag in computer?

984


Explain static and dynamic memory allocation with an example each.

1042


What is the difference between function overloading and operator overloading?

1033


Write my own zero-argument manipulator that should work same as hex?

998


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

1009


Show the declaration for a static member variable.

954


What is a class template?

1025


Difference between class and structure.

1105


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1023


What is the difference between structure and class?

1159


What are exceptions c++?

991


How delete [] is different from delete?

956


Define a nested class. Explain how it can be useful.

1040