31 .
What is the output of this program ?

void main()
{
int i=3;
int *j=&i;
clrscr();
printf("%d%d",++*j,*(&i));
}
A.3 3
B. 4 3
C. 4,address of i printed
D.Error: L value required
E.None of the above
View AnswerAns: 4 3
32 .
What will be output of following C code ?

#include<`stdio.h`>    (Please neglect `` this signs)
int main()
{
static int i;
for(++i;++i;++i)
{
printf("%d ",i);
if(i==4) break;
}
return 0;
}
A.4
B. 14
C. 24
D.Infinite loop
E.Compilation error
View AnswerAns: 24
33 .
What will be output of following C code ?

#include<`stdio.h`>    (Please neglect `` this signs)
int main()
{
int *p1,**p2;
double *q1,**q2;
printf("%d %d ",sizeof(p1),sizeof(p2));
printf("%d %d",sizeof(q1),sizeof(q2));
getch();
return 0;
}
A.1 &nbsp; 2 &nbsp; 4 &nbsp; 8
B. 2 &nbsp; 4 &nbsp; 4 &nbsp; 8
C. 2 &nbsp; 2 &nbsp; 2 &nbsp; 2
D.2 &nbsp; 4 &nbsp; 2 &nbsp; 4
E.2 &nbsp; 2 &nbsp; 4 &nbsp; 4
View AnswerAns: 2 &nbsp; 2 &nbsp; 2 &nbsp; 2
34 .
What is the output of the following code ?

#include<`stdio.h`>    (Please neglect `` this signs)
void swap(int&, int&);
void main()
{
int a = 10,b=20;
swap (a++,b++);
printf(" %d%d",a, b);
}
void swap(int& x, int& y)
{
x+=2;
y+=3;
}
A.30, 60
B. 14, 24
C. 11, 21
D.10, 20
E.None of the above
View AnswerAns: 11, 21
35 .
#include<`stdio.h`>    (Please neglect `` this signs)
void main()
{
while (1)
{ if (printf("%d",printf("%d")))
break;
else
continue;
}
}

The output is :
A.1
B. Compile time error
C. Goes into an infinite loop
D.Garbage values
E.None of these
View AnswerAns: Garbage values