T
Tony Johansson
Hello Experts!!
When you instansiate varaibles(object) you can do so in four different scops
which are.
Within a block which is called Local or block scope .
Within a function which is called function scope.
Whithin a class which is called class scope.
Outside a function which is called global or file scope.
Now to my question when you allocate memory dynamically you can't say
anything about the scope because as long as you have the pointer you can
access the allocated memory anytime. I'm I right?
many thanks!
//Tony
When you instansiate varaibles(object) you can do so in four different scops
which are.
Within a block which is called Local or block scope .
Within a function which is called function scope.
Whithin a class which is called class scope.
Outside a function which is called global or file scope.
Now to my question when you allocate memory dynamically you can't say
anything about the scope because as long as you have the pointer you can
access the allocated memory anytime. I'm I right?
many thanks!
//Tony