[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Loop Control - Discussion

Home > C Programming > Loop Control > MCQs Questions Discussion

10 / 61

Find out the error in the 'while' loop, if any ?

#include<stdio.hvoid main()
{
int i= 1;
while ()
{
printf("%d", i++);
if (i > 10)
break;
}
}

AThe condition in the while loop is a must

BThere should be at least a semicolon in the while ()

CThe while loop should be replaced by for loop

DNo error

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Societe Generale

Post Your Answer Here:     

No Discussion on this question yet!