[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

58 / 61

Choose the correct option.

Comment on the below while statement
while (0 == 0) { }

AIt has syntax error as there are no statements within braces {}

BIt will run forever

CIt compares 0 with 0 and since they are equal it will exit the loop immediately

DIt has syntax error as the same number is being compared with itself

Answer: Option (Login/Signup)

Show Explanation

Asked In :: TCS

Post Your Answer Here:     

No Discussion on this question yet!