View more random threads:
- C++ have Virtual Function vs Function Pointer call 2011
- Memory pool & char array questions in C++ for 2011
- why we have declared these two TreeNode pointers left
- Within our assignment code, can we replace <iostream.h>...
- what is an argument in c++?
- Problem with the complexity of the program 2011
- what is the function of ostream in c++ 2011
- What is Array meaning in C++ and Java 2011
- ASCII code of c++
- how can i read the last letter of a input file? 2011
The program display 010, because:
Sponsored Links
cout<<isEqual( 5, 6 );
5 and 6 are not equal, therefore it display 0
cout<<isEqual( 7.5, 7.5 );
7.5 and 7.5 are equal, therefore it display 1
cout<<isEqual( "abc", "aba" );
"abc" and "aba" are not equal, therefore it display 0.
It display 010, because the return type of "isEqual" is “bool”, that returns either true(1) or false(0).
There are currently 1 users browsing this thread. (0 members and 1 guests)