Vidyalelo
C++ Programming · Q53

Variables and Data Types in C++

Programming · C++ Programming · question 53

Q53

What will be the output of the following C++ code? #include using namespace std; int main() float i = 123.0f; cout << i << endl; return 0;

A.
123.00
B.
1.23
C.
123
Answer
D.
compile time error

Answer: Option C

Solution

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