Question: 4. (6 points) Consider the following program. #include int main() { int i; printf(i =); for (i=7;i>0; i--) { int i=-2; printf(%d,i); } return(0); }

 4. (6 points) Consider the following program. #include int main() {

4. (6 points) Consider the following program. #include int main() { int i; printf("i ="); for (i=7;i>0; i--) { int i=-2; printf("%d",i); } return(0); } Indicate which one of the following best describes the output of this program. A. The output of this program is: "; = 7 6 5 4 3 2 1" B. The output of this program is: "i=-2-2-2-2-2-2-2 C. The output of this program is: "i = -2 D. None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!