I am wondering why the following code works:
double x,y,z,w,v;
x = 2.0e300;
y = 1.0e300;
z = 1.0e300;
w = 1.0e300;
v = (x*y)/(z*w);
cout << "v = " << v << endl << endl;
The correct answer of 2 prints out. However, both numerator and denominator exceed the range of double, which is...
I have written a "Win32 Console Application." When I compile it, the ENTIRE monitor screen (Windows desk top and all!) blanks out for a moment. Then everthing, including the VC++ window reappears. The same thing happens when I build (link) the exe file. When I execute the program, the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.