In the following program how long will the for

Loading

โœช Choose the correct option.

In the following program how long will the for loop get executed?

#include 
int main() {
int i;
for(;scanf("%d", &i);printf("%d ", i));
return 0;
}

A. The for loop would not get executed at all
B. The for loop would get executed only once
C. The for loop would get executed 5 times
D. The for loop would get executed infinite times

Leave a Comment