This is a discussion on Re: 0xFFFFFFFF & 0xFF == 000009F7 what is the deal with this bitwise? - C ; savemeinyourmind@gmail.com writes: > printf ("result=%ul",0xFFFFFFFF & 0xFF); > > output: > result:2551 ---> 000009F7 output: result=255l Note that the final character is an "ell", not a "wun". The correct format specifier for an 'unsigned long' (which it's not guaranteed you're ...
savemeinyourmind@gmail.com writes:
> printf ("result=%ul",0xFFFFFFFF & 0xFF);
>
> output:
> result:2551 ---> 000009F7
output:
result=255l
Note that the final character is an "ell", not a "wun".
The correct format specifier for an 'unsigned long' (which it's not
guaranteed you're passing to 'printf()' anyway) is "%lu".
mlp
--
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.