[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

1 / 61

What is the final value of i and final value of LOOPS ?

#include<stdio.h>
int main()
{
int i,j,k,l,lc=0;

printf("Enter the number  string:<1234 567>\n");
scanf("%2d%d%1d",&i,&j,&k);
for(;k;k--,i++) 
for(l=0;printf("%d %d\n",i,l);)
printf("LOOPS= %d\n", lc-1);
}

AI = 16 and LOOPS=169

BI = 0 and LOOPS=16

CCompilation Error

DNo output

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Societe Generale

Post Your Answer Here:     

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here