What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answer Posted / arash s
16
just read what is "absolute" and u will know why.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a mixin and inheritance?
What is protected in oop?
write a program to find 2^n+1 ?
What are classes oop?
Why polymorphism is used in oops?
What is oops concept with example?
Which is not an object oriented programming language?
What is abstraction in oops?
How to call a non virtual function in the derived class by using base class pointer
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are the data types in oop?
what is difference between class template and template class?
How many human genes are polymorphic?
What is polymorphism what is it for and how is it used?
Why do we use polymorphism?