What are the different scope C++ provide ?
Answer / 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 |
Tell me about virtual function
Define an Abstract class in C++?
How to invoke a C function using a C++ program?
What is the difference between an ARRAY and a LIST in C++?
How will you print a list of all unique words from a string which may contain repeated words?
What is the 4 difference between delete[] and delete?
Define type casting in C++.
What is Boyce Codd Normal form?
In C++ what is the meaning of data hiding?
Explain the difference between C and C++.
What is partial specialization or template specialization?
What kind of problems does name mangling cause?