What is the outcome of the line of code "cout<<abs(-
16.5);"?




1) 16


2) 17


3) 16.5

Answer Posted / naga

Ans: 16.5
The numerical value of a real number without regard to its
sign. For example, the absolute value of &#8722;4 (written |-4|)
is 4. Also called numerical value.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c++ program to swap the objects of two different classes

1756


Is abstract thinking intelligence?

590


What exactly is polymorphism?

598


Can a varargs method be overloaded?

613


How to hide the base class functionality in Inheritance?

634






Why is polymorphism needed?

590


What is the fundamental idea of oop?

634


What are the 4 main oop principles?

675


Why polymorphism is used in oops?

578


What is the difference between a mixin and inheritance?

517


how to get the oracle certification? send me the answer

1664


What is constructor in oop?

582


What do you mean by Encapsulation?

637


Why is static class not inherited?

591


Can you inherit a private class?

629