Scope Resolution Operator

Author Topic: Scope Resolution Operator  (Read 998 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Modular Kitchen Designer
Scope Resolution Operator
« on: 09-07-2016, 05:24:14 »
The scope resolution operator, the highest-precedence operator in the language, comes in two forms. The unary form is used to uncover or to access a name that has external scope and has been hidden by local or class scope. The binary form places the class or namespace identifier before the operator and the identifier after the operator.


Quote
::i // unary - refers to external scope
point::x // binary - refers to class scope
std::cout // binary - refers to namespace scope


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1606 Views
Last post 08-18-2011, 03:02:57
by springnetvn
0 Replies
1360 Views
Last post 08-20-2011, 00:05:09
by Vinil
0 Replies
1518 Views
Last post 07-12-2012, 03:53:11
by googinup
0 Replies
2434 Views
Last post 07-02-2016, 05:54:13
by chinmay.sahoo
0 Replies
1124 Views
Last post 12-21-2016, 19:56:46
by MartinL