What is the output of this C code?
void main()
{
int i = 0;
if (i == 0)
{
printf("Hello");
continue;
}
}
Answer: D
No answer description available for this question.
Enter details here
Point out the error, if any in the program.
#include
int main()
{
int a = 10;
switch(a)
{
}
printf("This is c program.");
return 0;
}
Answer: C
No answer description available for this question.
Enter details here
In C++, which system - provided function is called when no handler is provided to deal with an exception?
Answer: A
No answer description available for this question.
Enter details here
c = (n) ? a : b; can be rewritten asexp1 ? exp2 : exp3;
Answer: A
No answer description available for this question.
Enter details here
Switch statement accepts.
Answer: D
No answer description available for this question.
Enter details here
#include
int main()
{
int i = 3;
while (i--)
{
int i = 100;
i--;
printf("%d ", i);
}
return 0;
}
Answer: B
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
printf("before continue ");
continue;
printf("after continue\n");
}
Answer: D
No answer description available for this question.
Enter details here
Predict the output of the below program:
#include
int main()
{
int i = 3;
switch(i)
{
printf("Outside ");
case 1: printf("Geeks");
break;
case 2: printf("Quiz");
break;
defau1t: printf("GeeksQuiz");
}
return 0;
}
Answer: C
No answer description available for this question.
Enter details here
Point out the error, if any in the program.
#include
int main()
{
int a = 10, b;
a >=5 ? b=100: b=200;
printf("%d\n", b);
return 0;
}
Answer: C
No answer description available for this question.
Enter details here
What will be the output of the program?
#include
int main()
{
int x = 10, y = 20;
if(!(!x) && x)
printf("x = %d\n", x);
else
printf("y = %d\n", y);
return 0;
}
Answer: C
No answer description available for this question.
Enter details here