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

Explain Text Manipulation Routines?

1048


What is expression parser in c++

2437


How long will it take to learn programming?

1004


What is time_t c++?

1077


We use library functions in the program, in what form they are provided to the program?

1042


Is c++ pass by reference or value?

1010


Why is c++ not purely object oriented?

973


Explain queue. How it can be implemented?

1116


Explain data encapsulation?

1077


Can static member variables be private?

1130


What does catch(…) mean?

1076


Which programming language is best to learn first?

1018


What is auto type c++?

1086


write a programme to get a character and thier ASCII value

3007


What is a memory leak c++?

1077