A

Admin • 828.03K Points
Coach

Q. Which of the following parts of the for loop can be eliminated in C?

  • (A) init
  • (B) condition
  • (C) increment
  • (D) All of these
  • Correct Answer - Option(D)
  • Views: 11
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
Syntax of for loop:

for(init, condition, increment){
}
Inside the initialization statement (init), any of the three init or condition or increment can be eliminated i.e., all are optional. The loop can work without them also.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.