[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

60 / 61

What is the output of the following C code?

#include <stdio.h>
int main()
{
int i = 0;
for (foo(); i == 1; i = 2)
printf("In for loop\n");
printf("After loop\n");
}
int foo()
 {
 return 1;
 }

AAfter loop

BIn for loop after loop

CCompile time error

DInfinite loop

Answer: Option (Login/Signup)

Show Explanation

Asked In :: TCS TCS NQT

Post Your Answer Here:     

Reply    
Rate This: +0 -2 +
    Report


Report Error

Please Login First Click Here

Reply     |    Rate This: +1 -0      |     Report     



Report Error