01-06-2012, 12:28 AM
The program display 010, because:
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).
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
