Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
}
Source by www.ibm.com #
 
PREVIOUS NEXT
Tagged: #scope #resolution #operator
ADD COMMENT
Topic
Name
1+6 =