What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answers were Sorted based on User's Feedback
Answer / naga
Ans: 16.5
The numerical value of a real number without regard to its
sign. For example, the absolute value of −4 (written |-4|)
is 4. Also called numerical value.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / 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 |
What is the difference between Home and $Home?
What is difference between polymorphism and inheritance?
What is methods in oop?
What is multiple inheritance?
What is differance between Abstract and Interface
What is constructor in oop?
what is the difference between class to class type conversion and copy constructor ?
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)
Describe what an Interface is and how it?s different from a Class.
What is and I oop mean?
Where is pseudocode used?
What normal C constructs work differently in C++?