[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] bigmulin glblib05.c

From: Michael Hennebry
Subject: Re: [Help-glpk] bigmulin glblib05.c
Date: Mon, 4 Jan 2010 15:40:55 -0600 (CST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Mon, 4 Jan 2010, Cheng,Jen-Min wrote:

With MS Visual Studio 2008, unsigned int is four bytes and unsigned
short is two bytes.  If the value of the unsigned int t is greater than
maximum unsigned short, how will x[i+j] = (unsigned short)t; be
executed?  Thanks.

The manner C prescribes is x[i+j]= t mod 2**16,
assuming two bytes mans 16 bits.

Michael   address@hidden
"Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]