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 unnitialised pointer?

1092


What is a try block?

1075


What is the difference between while and do while loop?

1164


What are c++ manipulators?

1080


Is there a c++ certification?

1063


Write a function that swaps the values of two integers, using int* as the argument type?

1031


Why is standard template library used?

1058


the maximum length of a character constant can be a) 2 b) 1 c) 8

1098


What is the best way to declare and define global variables?

1335


Is C++ case sensitive a) False b) Depends on implementation c) True

1084


Differentiate between an inspector and a mutator ?

1229


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1073


What do you mean by a template?

1071


Difference between struct and class in terms of access modifier.

1195


What is do..while loops structure?

1155