0

double y=10; cout<<(y*y)-(y*10); What will be printed?

Above is part of code in c++. I have made some changes in the original question. Compiler output is -4.94066e-323 I need to understand why?

17th Apr 2017, 6:30 AM
Deepak Gupta
5 Respostas
+ 12
You can always compile it using our in-app C++ online compiler to get the answer. If you fix the syntax, the output should be 0.
17th Apr 2017, 7:36 AM
Hatsy Rei
Hatsy Rei - avatar
0
0
17th Apr 2017, 6:31 AM
Jack Dobson
0
0
17th Apr 2017, 7:02 AM
Cianando
0
error, as it should be cout (not capitalized)
17th Apr 2017, 7:03 AM
Volker Milbrandt
Volker Milbrandt - avatar
0
0 (cout is small letter as c++ is case sensitive)
17th Apr 2017, 7:14 AM
Anurag Lahon
Anurag Lahon - avatar