answersLogoWhite

0

:: operator can not be used in C.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

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.


Which operator is used 2 access ahidden global variables?

To access a hidden global variable, use the scope resolution operator ::


What is the operator that cannot be overloaded?

There are 5 operators which cannot be overloaded. They are: * .* - class member access operator * :: - scope resolution operator * . - dot operator * ?:: - conditional operator * Sizeof() - operator Note:- This is possible only in C++.


Which operator is allow to access hidden global variable in c plus plus?

A hidden global variable must be one that has its scope blocked by a local variable of the same name. To access the hidden variable, use the scope resolution operator ::, such as is ::variable_name. If there is another reason for the hidden status, please clarify and restate the question.


What is the use of break in c programming?

The break statement is used to exit the nearest enclosing scope. Control passes to the first statement that comes after that enclosing scope.


How do you use Scope resolution operator in c?

Scope resolution operator is resolved to unhide the scope of a global variable. for eg: #include<iostream.h> int x=20; //global variable void main() { int x=10; //local variable cout<<x; } output will be 10 only. you will never get the answer as 20. local and global variable are having the same name(here x). so unhide the scope of the global variable you have to use a scope resolution operator(::) before the variable. so if you are changing the above code as :cout<<::x; you will get the answer as 20.


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... }


Why is the multiplication operator represented by symbol?

In Java, the multiplication operator is represented by the asterisk, "*". This was not invented by Java; most programming languages, as well as programs such as Excel, use the same symbol.


What is the use of 'size of' in c programming?

The sizeof operator is used to determine the length of its operand (in bytes). The operand must be a type or an object of a type (a variable). The operator is a constant expression and therefore executes at compile time. As such there is no runtime overhead in repeated use of the sizeof operator.


How do you use more than one operator in C programming?

for example:x = y+z-3;this expression has three operators in it ('=', '+' and '-').


How can I use the stack pipe operator in programming to efficiently process and manipulate data?

The stack pipe operator in programming allows you to efficiently process and manipulate data by chaining multiple functions together in a sequence. This helps streamline the code and make it easier to read and maintain.


The multiplication operator is represented in Java by what symbol?

In Java, the multiplication operator is represented by the asterisk, "*". This was not invented by Java; most programming languages, as well as programs such as Excel, use the same symbol.