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
• What are the desirable attributes for memory managment?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is encapsulation and abstraction? How are they implemented in C++?
What is the diamond problem in inheritance?
What are the three parts of a simple empty class?
What is class and object in oops?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is difference between inheritance and polymorphism?
What are the features of oop?
What are constructors in oop?
how to get the oracle certification? send me the answer
What do you mean by overloading?
How do you define social class?
What is inheritance in oop?
Please send ford technologies placement paper 2 my mail id