0
What is the output of the following C program (assume C99 or later)?
#include <stdio.h>
int main() {
printf("%d %d", -7 / 2, -7 % 2);
return 0;
}- A-4 1
- B-4 -1
- C-3 1
- D-3 -1
Correct answer: D
What is the output of the following C program (assume C99 or later)?
#include <stdio.h>
int main() {
printf("%d %d", -7 / 2, -7 % 2);
return 0;
}