sigmacunfu <sigmacunfu@[EMAIL PROTECTED]
> writes:
>1. I want to know, if it's possible to have a pointer that is pointing
>to an individual bit, say, of an "int"?
No.
>2. Suppose that I have declared a "unsigned int", using bitwise
>operations, I have set the higher 16 bits to 1, is it possible now
>that without using bitwise operations, I could copy a 16-bit "unsigned
>short" into its lower 16 bits?
You could just add the short to the int (assuming, of course, that the int
is
at least 32 bits long).
--
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.


|