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 are the 4 pillars of oop?

0 Answers  


what is the use of classes in c++;

2 Answers   HCL,


how to find the correct email address format by using the programe?

1 Answers   Accenture,


Why multiple inheritance is not possible?

0 Answers  


What is data binding in oops?

0 Answers  


Templates mean

0 Answers  


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


what is difference between String s=new String("vali"); String s="vali"

1 Answers  


suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

3 Answers   EA Electronic Arts,


Why it is called runtime polymorphism?

0 Answers  


what is object slicing

3 Answers   TCS,


write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language

3 Answers   Satyam,


Categories