What is a packed 32-bit?

  • Thread starter Thread starter Doru Roman
  • Start date Start date
D

Doru Roman

Hi,

Can somebody tell me what is a packed variable?
For example a packed 32-bit integer. Is it the same as unsigned?

Thanks
 
Doru Roman said:
Can somebody tell me what is a packed variable?

I'm guessing that by pacjed variable you are referring to the ability of the
C and C++ compilers tp pack "bit fields" into an integer. I could be wrong.

If I am not, you might want to google for "bit field" and take a look at
results like this one:

http://www.cs.cf.ac.uk/Dave/C/node13.html
For example a packed 32-bit integer. Is it the same as unsigned?

ints and unsigned ints are two different types.

Regards,
Will
 
Thanks William


William DePalo said:
I'm guessing that by pacjed variable you are referring to the ability of
the C and C++ compilers tp pack "bit fields" into an integer. I could be
wrong.

If I am not, you might want to google for "bit field" and take a look at
results like this one:

http://www.cs.cf.ac.uk/Dave/C/node13.html


ints and unsigned ints are two different types.

Regards,
Will
 
Can somebody tell me what is a packed variable?
For example a packed 32-bit integer. Is it the same as unsigned?

The book, "The New C Standard" by Derek M. Jones, which was never published,
but is freely available via Acrobat PDF, contains good information on the
subject in ample supply throughout the 1600+ page book that will surely
answer your question.


Thanks,
Shawn
 
Back
Top