What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answer Posted / pramod
The result is compiler error .....Because abs(int) and
abs(long) are the two overloaded functions. When a call to
abs(-16.5) is made, compiler can not find out which one to call.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Which language is pure oop?
What is object in oop?
What is class and example?
Why do we need polymorphism in c#?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is destructor oops?
What are different oops concepts?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
How to hide the base class functionality in Inheritance?
what is different between oops and c++
What do you mean by Encapsulation?
How Do you Code Composition and Aggregation in C++ ?
What is use of overloading?
Why is polymorphism important in oop?
Can a destructor be called directly?