Complete the code to declare an integer variable named age.
int [1];The code declares an integer variable named age using the int keyword.
Complete the code to declare a floating-point variable named price.
float [1];The code declares a floating-point variable named price using the float keyword.
Fix the error in the code by completing the declaration of a character variable named grade.
char [1];The code declares a character variable named grade using the char keyword.
Fill both blanks to declare a double variable named distance and initialize it to 100.5.
double [1] = [2];
The code declares a double variable named distance and initializes it with the value 100.5.
Fill all three blanks to declare a boolean variable named isValid, initialize it to true, and print it using printf.
#include <stdio.h> #include <stdbool.h> int main() { bool [1] = [2]; printf("Is valid: %d\n", [3]); return 0; }
stdbool.hTrue instead of trueThe code declares a boolean variable isValid, initializes it to true, and prints its value using printf. The %d format specifier prints the integer value of the boolean.