What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answer Posted / nathusingh rathod
Right answer for this question is 16. Had there been fabs
then result would have been 16.5 but as there is only abs()
so it will return integer value i.e 16.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can enum be null?
What is the fundamental idea of oop?
What is encapsulation example?
What is this pointer in oop?
What are main features of oop?
How does polymorphism work?
What is polymorphism programming?
What is the difference between a constructor and a destructor?
What is abstraction encapsulation?
Why do we need polymorphism in c#?
State what is encapsulation and friend function?
What is abstract class in oops?
What are the advantages of polymorphism?
What does it mean when someone says I oop?
Why multiple inheritance is not possible?