Complete the code to declare a constant integer variable named num with value 10.
const [1] num = 10;
float or double instead of int.const before the type.The const keyword makes the variable num constant, and int declares it as an integer type.
Complete the code to declare a pointer to a constant character named ptr.
const char* [1];ptr as asked.The variable name ptr is used as the pointer to a constant character.
Fix the error in the code by completing the type modifier to declare a volatile integer variable named counter.
[1] int counter;constant instead of volatile.static which has a different meaning.The volatile keyword tells the compiler that the variable counter can be changed unexpectedly, so it should not optimize it away.
Fill both blanks to declare a pointer to a volatile integer named p.
[1] int [2] p;
& instead of * for pointer declaration.const instead of volatile.The keyword volatile modifies the integer type, and * declares p as a pointer.
Fill all three blanks to declare a constant pointer to a constant integer named ptr.
[1] int [2] [3] ptr;
const to make the pointer constant.volatile instead of const.The first const makes the integer constant, the * declares a pointer, and the second const makes the pointer itself constant.