Complete the code to declare a pointer to an integer.
int [1] ptr;The asterisk (*) is used to declare a pointer variable in C.
Complete the code to declare a pointer to a character.
char [1] ch_ptr;The asterisk (*) is used to declare a pointer variable, here pointing to a char.
Fix the error in the pointer declaration.
float [1] ptr;The asterisk (*) must be placed before the pointer variable name to declare a pointer.
Fill both blanks to declare a pointer to a double and initialize it to NULL.
double [1] ptr = [2];
The asterisk (*) declares the pointer, and NULL initializes it to point to nothing.
Fill all three blanks to declare a pointer to a constant integer and initialize it to NULL.
const int [1] ptr = [2]; // pointer to constant int [3] value = 10;
The asterisk (*) declares the pointer, NULL initializes it, and int declares the variable type.
