Question PRG-C-0003
EasyWhat is the output of this program?
#include <stdio.h>
int main(void) {
printf("%d", 10 % 3);
return 0;
}
- A.
1
- B.
0
- C.
Show answer and explanation
Answer: A
% gives the remainder of integer division: 10 = 3 × 3 + 1.