Q. What will be the output of the following program ?
Code:#include
void main()
{ int a = 2;
switchA.
{ case 1:
printf(“goodbye”); break;
case 2:
continue;
case 3:
printf(“bye”);
}
}
Dear candidates you will find MCQ questions of C Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
#include
void main()
{ int a = 2;
switchA.
{ case 1:
printf(“goodbye”); break;
case 2:
continue;
case 3:
printf(“bye”);
}
}
int i = 1,j; j=i— -2; printf(“%d”,j);
#include
main()
{
int x,y = 10;
x = y * NULL;
printf(“%d”,x);
}
char x[ ] = “hello hi”; printf(“%d%d”,sizeof(*x),sizeof(x));
int a=5,b=6,c=9,d; d=(ac?1:2):(c>b?6:8)); printf(“%d”,D.;
int i = 3; printf(“%d%d”,i,i++);
#include
void main()
{
int a = 36, b = 9;
printf(“%d”,a>>a/b-2);
}
int testarray[3][2][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
void main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf(“EXAM”);
}
}
#include
void main()
{
int s=0;
while(s++<10)>
# define a 10
main()
{
printf(“%d..”,A.;
foo();
printf(“%d”,A.;
}
void foo()
{
#undef a
#define a 50
}