Complete the code to declare a constant integer named MAX with value 100.
const int MAX = [1];The constant integer MAX is assigned the literal value 100 without quotes.
Complete the code to declare a constant floating-point number PI with value 3.14.
const double PI = [1];The constant PI is assigned the floating-point literal 3.14 using a dot as decimal separator.
Fix the error in the code to declare a constant character named LETTER with value 'A'.
const char LETTER = [1];Character literals use single quotes in C++.
Complete the code to declare a constant boolean named IS_READY with value true.
const bool IS_READY = [1];Boolean constants use lowercase true or false without quotes in C++.
Complete the code to declare a constant string named GREETING with value "Hello".
const std::string GREETING = [1];String literals in C++ are enclosed in double quotes. Using std::string constructor is also valid but here the literal is expected.