Answer Posted / aboelella
Variable scope is the places in code where this variable can
be accessed
Varaible can be defined to be global (visible in the program
include scope)
Variable can be local if defined in the scope of parantesis
(inside function or in compound statement)
In classes variables scope depends on the way it is defined
(privat, public or protected)
| Is This Answer Correct ? | 21 Yes | 0 No |
Post New Answer View All Answers
What is the main function c++?
What are exceptions c++?
What is flush c++?
What are the extraction and insertion operators in c++?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
What is oops in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Explain abstraction.
When must you use a pointer rather than a reference?
Can we run c program in turbo c++?
What does I ++ mean in c++?
What is the keyword auto for?
Can we overload operator in c++?
the first character in the variable name must be an a) special symbol b) number c) alphabet