// Pantea Aria // linked list introduction // What is a linked list? How is it different from an array? static memory // collection of same data type - dybnamic memory in linked list malloc // Draw a linked list of three nodes with values 10, 20, and 30. // What does the last node of a singly linked list point to? NULL // make linked lists with 3 nodes, print each node's data #include #include struct node { int data; struct node *next; }; int main (void) { // declare, malloc and initialise for first node // declare, malloc and initialise for second node // declare, malloc and initialise for third node // link first to second // link second to third // print out all values // print all next return 0; }