Complete the code to declare an integer variable named age.
int [1] = 25;
The keyword int declares an integer variable. Here, age is the variable name.
Complete the code to declare a floating-point variable named price with value 19.99.
float [1] = 19.99f;
f suffix for float literals.The float type stores decimal numbers. The variable name price matches the context.
Fix the error in the code by choosing the correct data type for the variable isOpen.
[1] isOpen = true;string or float for boolean values.integer which is not a valid C++ type.The bool type stores true or false values. Here, isOpen should be declared as bool.
Fill both blanks to declare a character variable named grade with value 'A'.
char [1] = [2];
The char type stores a single character. The variable name is grade and the value must be a character literal 'A'.
Fill both blanks to declare a double variable named distance with value 123.456.
double [1] = [2];
float suffix f with double type.The double type stores decimal numbers with double precision. The variable name is distance and the value is 123.456 (without f suffix).