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);
}
#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