User Tools

Site Tools


cs509:cpluscplusfunctionreturn_i

See the following code:

int myfunction( int myinput ) {
   if ( myinput > 0 )
      return 1;
   else if ( myinput == 0 )
      return 0;
   else
      return -1;
}

<poll How many values will be returned by the above function? [a]>

  • 1
  • 2
  • 3
  • Up to 3

</poll>

cs509/cpluscplusfunctionreturn_i.txt · Last modified: 2013/02/20 18:38 by jchung

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki