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