adspace


What are the different scope C++ provide ?

Answer Posted / Seema Gupta

In C++, there are four scopes: local (or block), class (member), namespace, and file (global). Local scope applies to variables defined within a block. Class scope applies to members of a class. Namespace scope is used to organize functions, classes, and variables in a logical manner. File scope applies to variables declared outside any function or class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1162


daily Routine of father

1483


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3474


Please send ford technologies placement paper 2 my mail id

2173


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

2276


What character terminates all character array strings a) b) . c) END

1392


Can union be self referenced?

1265


sir please send me bpcl previous question papers

2478


What is the latest version on c++?

1205