38. Insert the following C code fragment between the declaration of node and main() in Figure 6.48:...

Question:

38. Insert the following C code fragment between the declaration of node and main() in Figure 6.48:

void reverse(struct node *list) {

if (list != 0) {

reverse(list->next);

printf("%d ", list->data);

}

}

and the following code fragment in main() just before the return statement:

printf("");

reverse(first);

printf("");

Translate the complete C program to Pep/9 assembly language. The added code outputs the linked list in reverse order.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems

ISBN: 9781284079630

5th Edition

Authors: J Stanley Warford

Question Posted: