Computer Science, asked by sakshipatil9400, 10 months ago

------------- operator resolves ambiguity between local & global variables.
a) - b) :: c)? d):​

Answers

Answered by Anonymous
3

Answer:

This is my code #include <iostream> using namespace std; int x = 5; int main() { int x = 1; cout << "The variable x: " << x << endl; } I get as output ...

Missing: d ‎| Must include: d

Answered by shreya457sl
1

Answer:

The answer would be the option (b) ::

Explanation:

The symbol '::' is known as the scope resolution operator. It is used for the following purposes.

  • To access a global variable if you have a local variable with the same name.
  • For defining the function outside the class.
  • For accessing static variables in the class.
  • For multiple inheritance: If the same variable name exists in two ancestor classes, you can distinguish it using the scope resolution operator.

#SPJ3

Similar questions