Complete the code to declare an array of integers with size 5.
int arr[[1]];The array size must be 5 to hold 5 integers.
Complete the code to access the third element of the array.
int value = arr[[1]];Array indexing starts at 0, so the third element is at index 2.
Fix the error in the linked list node definition by completing the pointer declaration.
struct Node {
int data;
struct Node[1] next;
};The next pointer must be declared as a pointer to struct Node using '*'.
Fill both blanks to complete the hash map lookup function header and return type.
[1] [2](HashMap* map, int key);
The function returns an int and is named lookup to find a value by key.
Fill all three blanks to complete the array search function that returns index or -1 if not found.
int search(int arr[], int size, int target) {
for (int [1] = 0; [2] < size; [3]++) {
if (arr[i] == target) {
return i;
}
}
return -1;
}The loop variable is 'i' used consistently for initialization, condition, and increment.
