answersLogoWhite

0


Best Answer

The if statement

ex.
if (index < 5)
printf("Index is less than 5\n");
else
printf("index is greater or equal to 5\n");

(You can also replace the "if" with a "?" and the "else" with a "?" -- no, that would be syntax error)

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

There are 7 C++ operators that connot be overloaded. They are...

. select

.* pointer select

:: scope

:> base

?: conditional

# preprocessor

## preprocessor

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

BCOZ

The conditional operator is essentially shorthand for the more verbose "if/else" statement and is best used for simple comparisons, even if it is possible to construct aribtrarily complex logic using the operator. Because the condition must evaluate to true or false, you can however overload the == and/or != operators to achieve the result you are looking for.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The operators that cannot be overloaded in C++ are:

  • . member selection
  • .* pointer to member selection
  • :: scope resolution
  • :> base
  • ?: conditional
  • # preprocessor
  • ## preprocessor
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which operator not overloaded in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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

No.


What is the operator that cannot be overloaded in c plus plus and java?

conditional operator , size of operator , membership operator and scope resulation operator can not be overload in c++


Which operator cannot be overloaded c plus plus?

comma (,) is an example


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 c plus plus operators cannot be overloaded?

1. Member-of operator (.) 2. Pointer-to-member-of operator (.*) 3. Ternary condition operator (?:) 4. Scope resolution operator (::) 5. sizeof operator 6. typeid 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++.


How can you differentiate overloading of pre-fix and post-fix increment operator?

The prefix increment operator is overloaded as operator++() while the postfix increment operator is overloaded as operator++(int).


What is the operator is used to allocate the memory in c plus plus?

calloc operator,malloc operator


What is the operator of power in c plus plus?

There is no "power" operator in C or C++. You need to the use the math library function pow().


Example of binaray operator in c plus plus?

+ is an example, one of many, of a binary operator in C or C++ a = b + c; // for usage example


What is the memory management operator in c plus plus?

There is no memory management operator in C++ -- it is an unmanaged language. You use the C++ new operator to allocate memory, and use the C++ delete operator to release previously allocated memory.


What are the disadvantages of scope resolution operator?

it cannot be operator overloaded.