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
}
}

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.