logo

Crowdly

Browser

Add to Chrome

Нехай дано опис структури даних на мові С: struct mmm { int x; mmm *next...

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

Нехай дано опис структури даних на мові С:

struct mmm {

int x;

mmm *next;

} *head, *p1, *p2;

За фрагментом програми визначіть структуру, що утворюється з його допомогою:

head=(mmm*)malloc(sizeof(mmm));

scanf(“%d”, &xx);

head->x=xx;

head->next=null;

p1=head;

scanf(“%d”, &xx);

while (xx!=0) {

p2=(mmm*)malloc(sizeof(mmm));

p2->x=xx;

p2->next=null;

p2->next=p1;

p1=p2;

scanf(“%d”, &xx);

}

33%
0%
0%
67%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome