What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
int i = 0, j = 0;
while (l1: i < 2)
{
i++;
while (j < 3)
{
printf(“loop\n”);
goto l1;
}
}
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
int i = 0, j = 0;
while (i < 2)
{
l1 : i++;
while (j < 3)
{
printf(“Loop\n”);
goto l1;
}
}
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
printf(“%d “, 1);
goto l1;
printf(“%d “, 2);
}
void foo()
{
l1 : printf(“3 “, 3);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
printf(“%d “, 1);
l1:l2:
printf(“%d “, 2);
printf(“%d\n”, 3);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
printf(“%d “, 1);
goto l1;
printf(“%d “, 2);
l1:goto l2;
printf(“%d “, 3);
l2:printf(“%d “, 4);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
int i = 0;
for (i = 0;i < 5; i++)
if (i < 4)
{
printf(“Hello”);
break;
}
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
int i = 0;
int j = 0;
for (i = 0;i < 5; i++)
{
for (j = 0;j < 4; j++)
{
if (i > 1)
continue;
printf(“Hi \n”);
}
}
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
int i = 0, j = 0;
for (i = 0;i < 5; i++)
{
for (j = 0;j < 4; j++)
{
if (i > 1)
break;
}
printf(“Hi \n”);
}
}
What will be the output of the following C code? #include < stdio.h >
View QuestionWhich keyword is used to come out of a loop only for that iteration?
a) break b) continue c) return d) none of the mentioned Answer: b
View Question