I'm in the embryonic stages of teaching myself C and am confused about using the modulus operator in a compound operation. Given:
Code:int i = 17; int j = 5; int answi; answi = i / j; /* 3 is stored in answi */ answi %= 2; /* 1, the remainder of 3/2, is now stored in answi */
Am I close?