Computer Science, asked by prathameshwankhede0, 2 months ago

What is scope resolution operator ? How is it used to solve ambiguity between local and global variable ?​

Answers

Answered by Anonymous
3

The scope resolution operator ( :: ) is used for several reasons. For example: If the global variable name is same as local variable name, the scope resolution operator will be used to call the global variable. It is also used to define a function outside the class and used to access the static variables of class

Similar questions