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 are compilers in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?
How does list r; differs from list r();?
What is c++ flowchart?
Can turbo c++ run c program?
What information can an exception contain?
Name the implicit member functions of a class.
What are friend classes?
What is c++ best used for?
What are the uses of static class data?
What is the use of setprecision in c++?
What is the rule of three?
What is void pointer in c++ with example?
Write syntax to define friend functions in C++.
what is upcasting in C++?