Vidyalelo
C++ Programming · Q11

Variables and Data Types in C++

Programming · C++ Programming · question 11

Q11

What is the correct syntax to declare and initialize a variable 'age' of type 'int' with a value of 25 in C++?

A.
age = int(25);
B.
int = age 25;
C.
int age = 25;
Answer
D.
age int = 25;

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board