0
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 1;
while (i < 5) {
printf("%d ", i++);
i++;
}
return 0;
}- A2 4
- B1 3 4
- C1 3
- D1 2 3 4 5
Correct answer: C
#include <stdio.h>
int main()
{
int i = 1;
while (i < 5) {
printf("%d ", i++);
i++;
}
return 0;
}