What is a scope resolution operator?

What is a scope resolution operator?

Scope Resolution Operator is defined as (::). It used to define the member functions of a class outside the class. It shows the scope resolution operator untangling a mess made by using 
the same names for different kinds of entities. it resolves global scope to local scope.
Ex:
int x=20;
int main()
{
x=30;
cout<<::x<

By:UMANG
Date:2001-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher