Q. Which of the following is the correct syntax to declare a static variable in C++?
β
Correct Answer: (B)
static int a;
Explanation: In C++, a static variable is declared using the 'static' keyword followed by the data type, like 'static int a;'.