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).