Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



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

Answer / shankar

None of them

Is This Answer Correct ?    3 Yes 4 No

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

Answer / 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

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

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

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

Answer / tandoor

16

Is This Answer Correct ?    2 Yes 4 No

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

Answer / prabakaran

2)17

Is This Answer Correct ?    3 Yes 5 No

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

Answer / monika

-16

Is This Answer Correct ?    2 Yes 7 No

Post New Answer



More OOPS Interview Questions

define a string class. overload the operator == to compare two strings

2 Answers   Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,


Why do we need oop?

0 Answers  


What is an object?

14 Answers   HCL,


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


Write an operator overloading program to write S3+=S2.

2 Answers  






WAP find square root of any number (without using sqrt() )?

3 Answers  


write a program to print * * * * * *

2 Answers  


Please send ford technologies placement paper 2 my mail id

0 Answers  


What is a class in oop?

0 Answers  


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

0 Answers   Accenture,


WHAT IS THE DIFFERENCE BETWEEN OBJECT BASED & OBJECT ORIENTD PROGRAMMING LANGUAGE.(GIVE AT LIST 4 PIONT)

1 Answers   TCS,


WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.

7 Answers   ETH,






Categories