Re: long integer multiplication



Wade Ward said:

<snip>
long long x;
int y = 0;
y = y *(int)x;
I think that might be legal.

It isn't. The value of x is indeterminate, so the result of the explicit
conversion is undefined.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.



Relevant Pages