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 / lovly

One of the really big pluses with GOSUB/RETURN is that you
can share variables that are neither global nor restricted
to one piece of code.

With or without that functionality, how about a way to
share variables (with memory of course) between only
certain subs/functions? Something like:
(per function/sub)

"STATIC SHARED as integer namespace_name.variable_name =
0" -OR-
"STATIC SHARED namespace_name.variable_name as integer"

Usage would just be: "variable_name" -- no "." or namespace
prefix.

I think that would be a great addition to FB. Thoughts

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are literals in C++?

1077


How do I start a c++ project?

1117


Can a list of string be stored within a two dimensional array?

1040


What is meant by entry controlled loop?

1179


why is c++ called oops? Explain

1096


What is an adaptor class or wrapper class in c++?

1324


Program to check whether a word is a sub-string or not of a string typed

2084


Does dev c++ support c++ 11?

1085


What is null and void pointer?

1107


What is an operator function? Describe the function of an operator function?

1232


What does int * mean in c++?

1274


What is the extraction operator and what does it do?

1124


What is a lambda function c++?

1190


What is a manipulative person?

1074


What is ios :: in in c++?

1107