View more random threads:
- we used single & and single | logical operator in...
- Argc(argument count) and argv(argument value) are used in...
- Q: What is the difference between function declaration and...
- c++ program on unix
- I would able to program in c++ I would be able to program...
- what is difference between Data Members and Members...
- i used Char data type to store a sentence but there is...
- oop an procedral programming 2011
- what are Templates?
- what is difference between friend class and friend alternate
The program display 010, because:
cout<<isEqual( 5, 6 );
5 and 6 are not equal, therefore it display 0
Sponsored Links
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)