|
Ans: 1.D 2.D 3.C
Then there was a question relative to the diagrams following logical diagrams
From Edward Thorpe
Ans: 30. D 31. B 32. D 33. A 34. B 35. D
C QUESTIONS:
Briefcase ]
1. Struct x
{
int i;
char c;
}
union y{
struct x a;
double d;
};
printf("%d",sizeof(union y));
a)8 ans:8
b)5
c)4
d)1
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
|
|