|
2. struct x{
char c1;
char c2;
int i;
short int j;
};
struct y{
short int j;
char c1;
char c2;
int i;
};
printf("%d %d",size of (struct x),size of (struct y));
a)12 12
b)8 8 ans:a
c)12 8
d)8 12
3. enum x {a=1,b,c,d,f=60,y}
printf("%d",y);
a)5
b)61
c)6
d)60
ans:b
4.
#include<stdio.h>
void main(){
{
# define x 10
}
printf("%d \n",++x);
}
a)11
b)10
c)compile error ans:c
d)runtime error
|
|