Complete the code to declare an array of 5 integers.
int numbers[[1]];The array size must be 5 to hold 5 integers.
Complete the code to define a node struct for a singly linked list.
struct Node {
int data;
struct Node* [1];
};The pointer to the next node in a singly linked list is commonly named 'next'.
Fix the error in the code to allocate memory for a new linked list node.
struct Node* newNode = (struct Node*) malloc(sizeof([1]));In C, when using sizeof for a struct, you must use the full type name including 'struct'.
Fill both blanks to correctly access the third element in an array and the third node's data in a linked list.
int thirdArrayValue = arr[[1]]; int thirdNodeValue = thirdNode->[2];
Array indices start at 0, so the third element is at index 2. The data in a node is accessed via 'data'.
Fill all three blanks to create a linked list node, assign data, and link to next node.
struct Node* node1 = (struct Node*) malloc(sizeof([1])); node1->[2] = 10; node1->[3] = NULL;
Memory is allocated for 'struct Node'. The data field is assigned 10. The next pointer is set to NULL to mark the end.
