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

Is there a sort function in c++?

991


Is c++ a float?

1058


Explain how to initialize a const data member.

1120


Is c++ a high level language?

994


Is swift faster than go?

1090


What do you mean by early binding?

1066


What are the advantages of using a pointer?

1074


Is there any function that can skip certain number of characters present in the input stream?

1062


What is an associative container in c++?

1061


What is the header file for setw?

1120


Can member functions be private?

1001


What is the use of bit fields in structure declaration?

978


What is function declaration in c++ with example?

1091


What is the limitation of cin while taking input for character array?

2071


How do you differentiate between overloading the prefix and postfix increments?

1092