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 is a list c++?

1071


Why do we use the using declaration?

1119


Do class declarations end with a semicolon? Do class method definitions?

1083


What is problem with overriding functions?

1004


What is difference between c++ 11 and c++ 14?

1012


When does a name clash occur in c++?

1107


what are the iterator and generic algorithms.

1883


Keyword mean in declaration?

1002


How can you specify a class in C++?

1224


What does I ++ mean in c++?

1035


How are pointers type-cast?

1061


Is the declaration of a class its interface or its implementation?

1122


What are put and get pointers?

1066


Can the creation of operator** is allowed to perform the to-the-power-of operations?

948


What would happen on forgetting [], while deallocating an array through new?

1029