Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: 0xFFFFFFFF ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1005 of 1099
Post > Topic >>

Re: 0xFFFFFFFF & 0xFF == 000009F7 what is the deal with this bitwise?

by richard@[EMAIL PROTECTED] (Richard Tobin) Sep 21, 2007 at 05:14 AM

In article <clcm-20070904-0036@[EMAIL PROTECTED]
> you write:
>printf ("result=%ul",0xFFFFFFFF & 0xFF);
>
>output:
>result:2551  ---> 000009F7

Always cut-and-paste programs and output, instead of retyping them.

Your output is in fact "255l", with a lower-case L at the end, not
a one.  You probably meant %lu.  And are you sure that 0xFFFFFFFF & 0xFF
is an unsigned long on your platform?

-- Richard
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- 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.




 1 Posts in Topic:
Re: 0xFFFFFFFF & 0xFF == 000009F7 what is the deal with this bi
richard@[EMAIL PROTECTED]  2007-09-21 05:14:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 2:28:52 CDT 2008.