Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is the difference between Home and $Home?

2 Answers   TCS,


What is difference between polymorphism and inheritance?

0 Answers  


What is methods in oop?

0 Answers  


What is multiple inheritance?

9 Answers   TCS,


What is differance between Abstract and Interface

3 Answers  


What is constructor in oop?

0 Answers  


what is the difference between class to class type conversion and copy constructor ?

2 Answers  


How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)

1 Answers  


Describe what an Interface is and how it?s different from a Class.

7 Answers   Spinsys,


What is and I oop mean?

0 Answers  


Where is pseudocode used?

0 Answers  


What normal C constructs work differently in C++?

2 Answers  


Categories