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
What is interface? When and where is it used?
Can we create object of interface?
What is static in oop?
How do you achieve runtime polymorphism?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is encapsulation c#?
What does sksksk mean in text slang?
program for insertion ,deletion,sorting in double link list
What are objects in oop?
What are constructors in oop?
What is the real time example of encapsulation?
Can an interface inherit a class?
What is constructor overloading in oop?
Who invented oop?