adplus-dvertising
frame-decoration

Question

Choose correct C while loop syntax.

a.

while(condition)
{
//statements
}

b.

{
//statements
}while(condition)

c.

while(condition);
{
//statements
}

d.

while()
{
if(condition)
{
//statements
}
}

Posted under C Programming

Answer: (a).while(condition)
{
//statements
}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose correct C while loop syntax.