What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answer Posted / prabakaran
1)16
because abs() is used to calculate the absalute value of
integer only,so it convert the floating point value -16.5
into -16,and
calculate tha abs() value
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is balance factor?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
How do you define a class in oop?
What is pure oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
which feature are not hold visual basic of oop?
Why do we use oop?
What is meant by oops concept?
Why it is called runtime polymorphism?
Why is polymorphism used?
Why we use classes in oop?
State what is encapsulation and friend function?
How to call a non virtual function in the derived class by using base class pointer
What is difference between pop and oop?
• What are the desirable attributes for memory managment?