I have a object, namely "server" which loses it existence when the control of program is out of scope.
So in general for any such objects, and memory of objects, when a function is called from within a scope, is the object lost?
like
void main void
{
if this and that
{ //scope
do this
call_func();
}
}//main ends
void call_func()
{
working
"utilise objects created in parent."
return;
}
call_func will not be able to see whats created by the parent function? yes ? or no?