View more random threads:
- loop statement in c++ 2011
- define program in c++ May 2011
- speclization in c++ 2011
- Read data from file into arrays in c++ 2011
- i used if statment to stop the program and prompt the error...
- What are constant members functions in c++ 2011
- can we define objects without any class?
- security and privacy in c
- what are instance variable in c++ ?
- what is the difference between abstract class and concerete...
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).
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)