adplus-dvertising
frame-decoration

Question

Which statement is correct among the mentioned statements?

1. The for loop works faster than a while loop
2. for( ; ; )implements an infinite loop

a.

Only 1 is correct

b.

Only 2 is correct

c.

Both 1 and 2 are correct

d.

Both 1 and 2 are incorrect

Answer: (b).Only 2 is correct

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which statement is correct among the mentioned statements? 1. The for loop works faster than a while loop 2. for( ; ; )implements an infinite loop