Chapter - 4: The Loop Control Structure

Which of the following statements are true about a for loop used in a C program? 1. for loop works faster than a while loop. 2. All things that can be done using a for loop can also be done using a while loop. 3. for(; ;) implements an infinite loop. 4. for loop can be used if we want statements in a loop to get executed at least once. 5. for loop works faster than a do-while loop.


D
Sections
9
Exercises

A

B

C

D

E

1

2

3

4

5

6

7

8

9

Following are true.

2. All things that can be done using a for loop can also be done using a while loop.

3. for(; ;) implements an infinite loop.


© 2020 Garbage Valuegarbage value logo