Linked List

Prerequisites:

Structure(must), Typedef, Pointers (must), Memory, importance of data type, stack and heap region of memory, dynamic memory allocation(malloc) and how it works.


Practice Problem

  1. Problem: You will be given an array of integers. Use malloc() to allocate memory in the heap. Write a recursive solution to print them in (inputted) order. ??????????????

Input:

5
69 87 45 21 47

Output:

69 87 45 21 47