Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Outputting u64 word using printf?

Author: Gopikrishna

Date: 07:26:54 06/07/04

Go up one level in this thread


On June 07, 2004 at 10:13:56, Uri Blass wrote:

>On June 07, 2004 at 10:05:32, Gopikrishna wrote:
>
>>I want to print an unsigned __int64 word using printf statement, so whats the
>>format to use? Like printf("%u64",variable); So will this work? Thanks.
>
>No
>
>for the right format see http://www.talkchess.com/forums/1/message.html?368654
>
>Uri

Like when I tried this,
void main()
{
	typedef unsigned __int64 u64;
	u64 r;
	r=1<<36;
	printf("%I64u",r);
	getchar();
}
The r value was printed as 0.Also for other numbers >36 its printing as 0.Is
this correct value that r is having?



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.