Vidyalelo
C++ Programming · Q3

Variables and Data Types in C++

Programming · C++ Programming · question 3

Q3

What is the data type of the variable 'x' in the following declaration: double x = 3.14;?

A.
int
B.
double
Answer
C.
float
D.
char

Answer: Option B

Solution

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