Cursul 1 Flashcards

1
Q

struct Test
{
int x;
int y;
int z;
};

A

12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

struct Test
{
char x;
char y;
int z;
};

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

struct Test
{
char x;
char y;
char z;
int t;
};

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

struct Test
{
char x;
char y;
char z;
short s;
int t;
};

A

12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

struct Test
{
char x;
short y;
char z;
short s;
int t;
};

A

12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

struct Test
{
char x;
short y;
double z;
char s;
short t;
int u;
};

A

24

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

struct Test
{
char x;
short y;
int z;
char t;
};

A

12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

pragma pack(1)
struct Test
{
char x;
short y;
int z;
char t;
};

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

pragma pack(2)
struct Test
{
char x;
short y;
int z;
char t;
};

A

10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

pragma pack(1)
_declspec(align(16)) struct Test
{
char x;
short y;
int z;
char t;
};

A

16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

struct Test
{
char x;
short y;
Test2 z;
int t;
char u;
};
struct Test2
{
char x;
short y;
int z;
};

A

20

How well did you know this?
1
Not at all
2
3
4
5
Perfectly