viewing paste Unknown #27575 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Consider the following method definition:
 
int update( int userIn )
{
   userIn++;
   return userIn;
}
Which of the following client calls will always result in the variable clientVal being incremented by exactly 1?
 
        A.     
   clientVal = update( y );
        B.     
   y = update( clientVal  );
        C.     
   clientVal = update( clientVal  );
        D.     
   update( clientVal  );
 
Viewed 651 times, submitted by unknown.