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 |
Why we use classes in oop?
how to write a java program for an output ****0 ***01 **012 *0123 01234
What does <> mean pseudocode?
Write a program to reverse a string using recursive function?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is the renewal class?
Plese get me a perfect C++ program for railway/airway reservation with all details.
what is virtual function?
26 Answers Aspire, HP, Infosys, RoboSoft, TCS,
what is the new version of oops
Can we create object of interface?
Why a "operator=(...)" when there is a copy ctor?
Which is better struts or spring?