0
What is the output of the following C program?
#include <stdio.h>
int main() {
int i = 5;
while (i > 0) {
i -= 2;
}
printf("%d", i);
return 0;
}- A0
- B-1
- C1
- D5
Correct answer: B
What is the output of the following C program?
#include <stdio.h>
int main() {
int i = 5;
while (i > 0) {
i -= 2;
}
printf("%d", i);
return 0;
}