Beginner
C++
Q4 / 100
What is the correct syntax to define a variable of type integer?
Correct! Well done.
Incorrect.
The correct answer is B) int x = 5;
B
Correct Answer
int x = 5;
Explanation
C++ uses primitive type keywords: int, double, char, bool, etc. followed by the variable name.
Progress
4/100