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;
for (foo(); i == 1; i = 2)
printf(“In for loop\n”);
printf(“After loop\n”);
}
int foo()
{
return 1;
}
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;
for (i++; i == 1; i = 2)
printf(“In for loop “);
printf(“After loop\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 >
int main()
{
int i = 0;
for (; ; ;)
printf(“In for loop\n”);
printf(“After loop\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 k;
for (k = -3; k < -5; k++)
printf(“Hello”);
}
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()
{
double k = 0;
for (k = 0.0; k < 3.0; k++);
printf(“%lf”, k);
}
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()
{
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf(“Hello”);
}
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 k = 0;
for (k < 3; k++)
printf(“Hello”);
}
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 k = 0;
for (k)
printf(“Hello”);
}
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()
{
short i;
for (i = 1; i >= 0; i++)
printf(“%d\n”, i);
}
What will be the output of the following C code? #include < stdio.h >
View Question