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
officer say me - i am offered to a smoking , then what can you say
Describe these concepts: Polymorphism, Inheritance and Abstraction.
How do you define a class in oop?
What is polymorphism in oop example?
What is coupling in oop?
Can you explain polymorphism?
What is the renewal class?
Why do we need oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What does and I oop mean in text?
What is the difference between a mixin and inheritance?
What is pure oop?
is there any choice in opting subjects like 4 out of 7
What is constructor in oop?
Why is abstraction needed?