Q18
Which of the following is a valid way to initialize a variable in C++?
A.
int x(5);
B.
x = 5;
C.
int x = 5;
AnswerD.
int x; x = 5;
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board