What is overloading unary operator?



What is overloading unary operator?..

Answer / Madhumeeta

In C++, an operator can be overloaded to perform operations on user-defined types. Unary operators are operators that take only one operand, such as ++, --, +, -, !, etc. When a unary operator is overloaded, it operates on the single operand and returns a result.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is ostream in c++?

1 Answers  


Explain the problem with overriding functions

1 Answers  


Will the inline function be compiled as the inline function always? Justify.

1 Answers  


What is the object serialization?

1 Answers  


What is an undefined behavior and sequence points

1 Answers  


simple c++ program for "abcde123ba" convert "ab321edcba" with out using string

5 Answers  


what does the following statement mean? int (*a)[4]

1 Answers  


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1 Answers  


What is the meaning of c++?

1 Answers  


Explain the volatile and mutable keywords.

1 Answers  


Can member functions be private?

1 Answers  


Briefly describe a B+ tree. What is bulk loading in it?

1 Answers   Wipro,


Categories