Question PRG-C-0074
HardWhat is the output of this program?
#include <stdio.h>
int main() {
int a = 7, b = 3;
printf("%d %d %d %d", a / b, -a / b, a % -b, -a % b);
return 0;
}
- A.
3 -2 1 -1
- B.
2 -2 1 -1
- C.
Sign up free to see the answer and a step-by-step explanation.