Complete the code to declare a static integer variable named 'counter'.
static [1] counter = 0;
The keyword static combined with int declares a static integer variable.
Complete the code to declare a static array of 10 characters named 'buffer'.
static [1] buffer[10];
int instead of char for character arrays.The array buffer is declared as a static array of characters using char.
Fix the error in the static pointer declaration to point to an integer.
static [1] *ptr;int.The pointer ptr should point to an integer, so the type is int.
Fill both blanks to declare a static constant array of 5 integers named 'values'.
static [1] [2] values[5] = {1, 2, 3, 4, 5};
float instead of int.const for constant arrays.The array is declared as a static constant integer array using const int.
Fill all three blanks to declare a static volatile pointer to a constant integer named 'ptr'.
static [1] [2] [3] * ptr;
volatile and const.The declaration uses static volatile const int *ptr; to declare a static volatile pointer to a constant integer.