Respuesta :

If a local variable and a global variable have the same name within the same program, the Scope resolution operator must be used.

What is scope resolution operator ?

  • Scope is an enclosing context used in computer programming to link values and expressions. The scope resolution operator, in particular by specifying a namespace, aids in identifying and defining the context to which an identifier corresponds.
  • The double colon, also known as the scope resolution operator, is a token that permits access to a class's static, constant, and overridden properties and methods. Use the class name to refer to these objects when referencing them from outside the class specification.
  • Scope resolution within modules is a special case of common object member access in some languages, particularly those influenced by Modula-3. In these languages, the standard method operator. is used for scope resolution. Examples of how scope resolution and method access are used in other languages, including C++ and Ruby, are provided below.

To learn more about scope refer :

https://brainly.com/question/15554910

#SPJ4

RELAXING NOICE
Relax