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 scope of a variable? (LOLZ)

Answer Posted / aboelella

Variable scope is the places in code where this variable can
be accessed

Varaible can be defined to be global (visible in the program
include scope)

Variable can be local if defined in the scope of parantesis
(inside function or in compound statement)

In classes variables scope depends on the way it is defined
(privat, public or protected)

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How new/delete differs from malloc()/free?

1187


Is swift a good first language?

1086


Explain the concept of copy constructor?

1105


Write about the various sections of the executable image?

1026


What is function prototyping?

1168


What c++ library is string in?

1106


What programming language should I learn first?

1149


What is static in c++?

1097


What are default parameters? How are they evaluated in c++ function?

1220


What are the 2 main types of data structures?

1168


What is insertion sorting?

1161


Is multimap sorted c++?

1072


Why is c++ not purely object oriented?

1059


How do I exit turbo c++?

1119


What are references in c++?

1190