If standard, which standard? Also see the comment left by AProgrammer on the accepted answer. Shouldn’t have be DEAD: It’s easy to solve if you cast the pointer to a long type. I’ve googled a bit for it, and the following thread is on the same topic, but doesn’t really give a solution. My guess was that the proper way to do this was: Should be removed from gcc IMHO.

Uploader: JoJozuru
Date Added: 13 September 2008
File Size: 68.75 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 52313
Price: Free* [*Free Regsitration Required]

If you choose to use a compiler that doesn’t conform to C99, like MSVCit’s up to you to find mootherboard how to do it, probably with an ifdef.

The reason what I ms 6585 motherboard to do is not portable is because not all platforms display ms 6585 motherboard as 0x Is my understanding correct that this behavior is motherbboard defined by the C99 standard? So here is the double question: Of course VS isn’t exactly known as a paragon of compliance This is way better than using the p conversion because the latter is implementation-defined.

Join Stack Overflow to learn, share knowledge, and build your career. Note the usage of the asterisk character to fetch the width by ms 6585 motherboard next argument, which is in C99 probably before? Joe D mothegboard VS ns. Reading it, it seems that the reason why gcc complains is that the syntax I suggested is not defined in C Email Sign Up or sign ms 6585 motherboard with Google.

Post as a guest Name. Also see the comment left by AProgrammer on the accepted answer.

But I can’t seem to find any other way to do the same thing in a standard approved way. The only implementation that doesn’t conform to this is MSVC bit. If so, is there a standard approved, portable way mtherboard doing this?

Let me make sure I got this straight. Because of this padding with 0s is not portable. Ms 6585 motherboard guess was ms 6585 motherboard the proper way to do this was: Stack Overflow works best with JavaScript enabled.


BEEF for motherblard mode. Rodrigo Queiro 5 If portability to windows is important, relying on C99 features ms 6585 motherboard probably not the thing to do. I’ll be interested in seeing what answers there are for portable solutionssince pointer representation isn’t exactly portable.

Maybe this will be interesting from a bit windows machine, using mingw: What’s the motnerboard ms 6585 motherboard of printf to display pointers padded with 0s Ask Question.

Also note that some implementations of printf print a ‘ 0x ‘ in front of the pointer; others do not and both are correct according to the C ms 6585 motherboard. Note that on Windows bit, the type unsigned long is still a bit quantity, though pointers are bits.

But what is BEAF? Fixed in the answer. Yup – thanks for the reminder. Check whether earlier versions supported ll before using it.

Linux PC Benchmarks Ubuntu – Roy Longbottom’s PC benchmark Collection

It’s easy to solve if you cast the pointer to a long type. AnthonyLambert 6, 3 28 Jonathan Leffler k 82 Should be removed from gcc IMHO. Note my comment about Windows bit; this will not work there. Jerry Miller 4 Actually, I think pointers a guaranteed to fit ms 6585 motherboard a long. This answer is similar to the one given earlier in https: This is admittedly inconvenient though of course you can wrap it in a function. The ms 6585 motherboard to unsigned long before recasting to unsigned long long breaks if sizeof unsigned long!

The problem I find with this suggestion: Keith Thompson k 24 What I wrote gets me what I like and not what I dislike.