Cursul 1 Flashcards
1
Q
struct Test
{
int x;
int y;
int z;
};
A
12
2
Q
struct Test
{
char x;
char y;
int z;
};
A
8
3
Q
struct Test
{
char x;
char y;
char z;
int t;
};
A
8
4
Q
struct Test
{
char x;
char y;
char z;
short s;
int t;
};
A
12
5
Q
struct Test
{
char x;
short y;
char z;
short s;
int t;
};
A
12
6
Q
struct Test
{
char x;
short y;
double z;
char s;
short t;
int u;
};
A
24
7
Q
struct Test
{
char x;
short y;
int z;
char t;
};
A
12
8
Q
pragma pack(1)
struct Test
{
char x;
short y;
int z;
char t;
};
A
8
9
Q
pragma pack(2)
struct Test
{
char x;
short y;
int z;
char t;
};
A
10
10
Q
pragma pack(1)
_declspec(align(16)) struct Test
{
char x;
short y;
int z;
char t;
};
A
16
11
Q
struct Test
{
char x;
short y;
Test2 z;
int t;
char u;
};
struct Test2
{
char x;
short y;
int z;
};
A
20