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

Why we use classes in oop?

0 Answers  


how to write a java program for an output ****0 ***01 **012 *0123 01234

1 Answers  


What does <> mean pseudocode?

0 Answers  


Write a program to reverse a string using recursive function?

0 Answers   TCS,


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

0 Answers   Wipro,


What is the renewal class?

0 Answers   Ebix, IBM,


Plese get me a perfect C++ program for railway/airway reservation with all details.

0 Answers   ITM,


what is virtual function?

26 Answers   Aspire, HP, Infosys, RoboSoft, TCS,


what is the new version of oops

0 Answers   Ignou,


Can we create object of interface?

0 Answers  


Why a "operator=(...)" when there is a copy ctor?

2 Answers  


Which is better struts or spring?

0 Answers  


Categories