25. | What will be the output of the following statements ? int i = 3;
printf("%d%d",i,i++);
|
|||||||
|
26. | What will be the output of the following program ? #include
void main()
{
int a = 36, b = 9;
printf("%d",a>>a/b-2);
}
|
|||||||
|
27. | int i = 4;
switch (i)
{
default: ;
case 3:
i += 5;
if ( i == 8)
{
i++;
if (i == 9) break;
i *= 2;
}
i -= 4;
break;
case 8:
i += 5;
break;
}
printf("i = %d\n", i);
What will the output of the sample code above be?
|
|||||||
|
28. | Find the output : main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}
|
|||||||
|
29. | Find the output : main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d\t %d\t %d\t %d\t %d\t",i,j,k,l,m);
}
|
|||||||
|
30. | Find the output : main()
{
char *p;
printf("%d %d ",sizeof(*p),sizeof(p));
}
|
|||||||
|
« previous
1
2
3
4
5
6
7
8
9
next »