1.

What will be the output of the following C code?
 #include <stdio.h>
int main()
{
int p = 0, k = 0, q;
for (k = 0; k < 10; k++)
{
p++;
if (k == 9)
break;
}
printf("%d",p);
}

A. 0
B. 9
C. 10
D. All of above
E. None of these
Answer» D. All of above


Discussion

No Comment Found

Related MCQs