Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a scope resolution operator?

Answer Posted / vikram

scope resolution operator(::) is used to define member
functions outside the class,that is we are defining the
member functions explicitly.
Scope resolution operator is also used to access the
globally declared variables.
for example,
#include<iostream.h>
int a=20;
main()
{
int a=10;
cout<<a<<endl<<::a;
}
here,the output will be:
10
20
thnx

Is This Answer Correct ?    38 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new keyword in oops?

999


What is polymorphism what is it for and how is it used?

978


Why multiple inheritance is not allowed?

1094


What is polymorphism in oop example?

970


Why do we use encapsulation in oops?

981


What is encapsulation and abstraction? How are they implemented in C++?

1077


What is polymorphism what are the different types of polymorphism?

956


What is destructor oops?

1042


What is the types of inheritance?

1041


What is oops in simple words?

1038


What is persistence in oop?

1102


Whats oop mean?

993


What is data binding in oops?

1036


What is the difference between a mixin and inheritance?

939


What is the purpose of enum?

969