C++ Operator Overloading Question:
Pick out the correct syntax of operator conversion.
a) operator float()const
b) operator float()
c) operator const
d) None of the mentioned

Answer:
a) operator float()const
Previous Question | Next Question |
How types are there in user defined conversion? a) 1 b) 2 c) 3 d) 4 | Which of the following operators can't be overloaded? a) :: b) + c) - d) [] |