Scope Resolution Operator

Author Topic: Scope Resolution Operator  (Read 1241 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
1909 Views
Last post 08-18-2011, 03:02:57
by springnetvn
0 Replies
1667 Views
Last post 07-12-2012, 03:53:11
by googinup
0 Replies
1471 Views
Last post 12-21-2016, 19:56:46
by MartinL
7 Replies
4763 Views
Last post 06-10-2020, 02:21:37
by brill_mindz
0 Replies
731 Views
Last post 07-24-2020, 13:07:21
by jaimeg