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?
5 Antworten
+ 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.
0
0
0
0
0
error, as it should be cout (not capitalized)
0
0 (cout is small letter as c++ is case sensitive)