adplus-dvertising
frame-decoration

Question

Choose a correct C for loop syntax.

a.

for(initalization; condition; incrementoperation)
{
//statements
}

b.

for(declaration; condition; incrementoperation)
{
//statements
}

c.

for(declaration; incrementoperation; condition)
{
//statements
}

d.

for(initalization; condition; incrementoperation;)
{
//statements
}

Posted under C Programming

Answer: (a).for(initalization; condition; incrementoperation)
{
//statements
}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose a correct C for loop syntax.