answersLogoWhite

0

Scope resolution is not required in C because C does not support namespaces. All non-local names are declared in the global scope.

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

Use of scope resolution operator in C programming?

:: operator can not be used in C.


Can the scope resolution operator be overloaded in C plus plus?

No.


How do you use the scope resolution operator in c?

You use the scope resolution operator (::) whenever there is ambiguity as to which function or member you are referring to. For instance, if two functions in two separate namespaces have the same signature, you must use scope resolution to call the correct version of the function. Similarly, when calling a base class method from a derived overridden method, you must use scope resolution to ensure the base class method is called from the override.


What brings a story to it close?

C. resolution


What is scope resolution in c plus plus?

Scope resolution allows the programmer to disambiguate between names that are common to two or more namespaces. For instance, if you imported two namespaces that both exposed different string classes, the compiler would not know which string class to use unless you use scope resolution to differentiate them. Scope resolution can also be used to differentiate between the different function overrides within a class hierarchy. By default, the most-derived function override is always executed implicitly, but that override may choose to invoke one or more of its base class overrides using scope resolution. struct a { virtual void foo() {/*...*/} }; struct b : a { virtual void foo() override; }; void b::foo() { a::foo(); // explicitly invoke base class method using scope resolution. // ...specialisation code goes here... }


What are the disadvantages of scope resolution operator?

it cannot be operator overloaded.


What is the scope mount for a Stevens model 325-c?

what is the scope mount for savage 325 c


What are special operators in c plus plus?

The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().


Which operator is allow to access hidden global variable?

The scope resolution operator, ::, overrides local scope and allows access to objects that are hidden due to global to local scope rules.


How much memory required for 1024768 resolution photo?

thats not a resolution mate.


How can a program be written without using a USING instruction?

By using explicit scope resolution.


The amount of diffraction and thus the resolution of the scope depends upon?

the amount of diffraction depends on the opening of the slit and the wavelength of the light being used... resolution of diffraction on the screen also depends on the slit opening and the wavelength, but it more specifically depends on the angle at which the lit is shone, more on resolution, check out criterion for resolution........physics textbook do alot of clear explanation on that, check out physics for scientists and engineers, serway