cs509:cpluscplusfunctionreturn_ii
See the following code:
int myfunction( int myinput ) { cout << "Starting myfunction()... "; if ( myinput > 0 ) return 1; else if ( myinput == 0 ) return 0; else return -1; cout << "Stopping myfunction()..."; }
What will be output by the above function?
- a - Starting myfunction()… Stopping myfunction()…
- b - Starting myfunction()…
- c - Stopping myfunction()…
- d - Nothing
<poll What will be output by the above function? [a]>
- a
- b
- c
- d
</poll>
cs509/cpluscplusfunctionreturn_ii.txt · Last modified: 2013/02/20 18:41 by jchung