logo

Crowdly

Browser

Add to Chrome

Что напечатает код? struct S { int a; struct S *b; struct S *prev; }; stru...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Что напечатает код?

struct S { int a; struct S *b; struct S *prev; };

struct S *x = malloc(sizeof(struct S));

struct S *y = malloc(sizeof(struct S));

struct S *z = malloc(sizeof(struct S));

x->b = y; x->prev = z;

z->a = 22; z->b = x; z->prev = y;

y->a = 33; y->b = z; y->prev = x;

printf("%d", x->b->b->b->a);

0%
0%
0%
0%
0%
100%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on else.fcim.utm.md?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome