Menu

[Solved] C Program Following Code Segments Would Cause Infinite Loop Int X X 0 X X Q37284536

C PROGRAM:

Which of the following code segments would cause an INFINITELOOP?

A.

int x;

for (x=0; x++; x<0)

print(“Hello”);

}

————————————–

B.

int x = 5;

while (x == 5) {

x++;

print(“Hello”);

}

———————————–

C.

do {

print(“Hello”);

} while (5 == 6);

————————————

D.

void x(int y) {

x(y);

print(“Hello”);

}

Expert Answer


Answer to C PROGRAM: Which of the following code segments would cause an INFINITE LOOP? A. int x; for (x=0; x++; x… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *