Answers for "advantages of using scope resolution operator in c++"

C++
0

scope resolution operator in c++

int count = 0;

int main(void) {
  int count = 0;
  ::count = 1;  // set global count to 1
  count = 2;    // set local count to 2
  return 0;
}
Posted by: Guest on October-31-2021
1

scope resolution operator in c++

:: // this is called the scope resolution operator. 
The :: (scope resolution) operator is used to qualify hidden names so that you can still use them
Posted by: Guest on September-22-2021

Code answers related to "advantages of using scope resolution operator in c++"

Browse Popular Code Answers by Language