X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C90B600.E3027D18@earthlink.net> From: Martin Ambuhl Organization: Nocturnal Aviation X-Mailer: Mozilla 4.77 [en] (Win95; U) X-Accept-Language: en,de-CH,fr,ru,zh-CN,ja MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie Division Operator Question References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Lines: 23 Date: Thu, 14 Mar 2002 14:38:31 GMT NNTP-Posting-Host: 209.246.77.189 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 1016116711 209.246.77.189 (Thu, 14 Mar 2002 06:38:31 PST) NNTP-Posting-Date: Thu, 14 Mar 2002 06:38:31 PST X-Received-Date: Thu, 14 Mar 2002 06:38:32 PST (newsmaster1.prod.itd.earthlink.net) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com IeperNaum wrote: > > #define __int64 long long > unsigned __int64 x = 268486768; > unsigned __int64 y = x/10000000; Why are you engaging in a completely pointless invasion of the implementation's namespace? > i expect y = 26 > but y = 4065811060. > > can anybody please explain to me why? Because y == 26. What makes you think otherwise? Are you calling printf with the wrong specifier? It should be %llu. -- It is better that the grammarians should chide us than that the people should not understand us. - St. Augustine