Complete the code to declare an array of 5 integers.
int numbers[[1]];The array size must be specified as 5 to hold 5 integers.
Complete the code to create a new node in a linked list.
struct Node* newNode = (struct Node*) malloc(sizeof([1]));We allocate memory for a Node structure, so sizeof(Node) is needed.
Fix the error in the code to correctly insert a node at the beginning of a linked list.
newNode->next = [1];
head = newNode;The new node's next should point to the current head before updating head.
Fill both blanks to complete the code that prints all elements of an integer array.
for(int i = 0; i [1] n; i[2]) { printf("%d ", arr[i]); }
The loop runs while i is less than n and increments i each time.
Fill all three blanks to complete the code that creates a linked list node and sets its data and next pointer.
struct Node* node = (struct Node*) malloc(sizeof([1])); node->data = [2]; node->next = [3];
Allocate memory for Node, assign data from value, and set next to NULL for end of list.
