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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is interface? When and where is it used?

2169


Can we create object of interface?

1137


What is static in oop?

1086


How do you achieve runtime polymorphism?

1056


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1641


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2320


What is encapsulation c#?

1089


What does sksksk mean in text slang?

2125


program for insertion ,deletion,sorting in double link list

2696


What are objects in oop?

1114


What are constructors in oop?

1195


What is the real time example of encapsulation?

1070


Can an interface inherit a class?

1069


What is constructor overloading in oop?

1143


Who invented oop?

1136