473,386 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

What is a packed 32-bit?

Hi,

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

Thanks
Apr 19 '06 #1
3 1657
"Doru Roman" <do*******@rogers.com> wrote in message
news:On**************@TK2MSFTNGP05.phx.gbl...
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
Apr 19 '06 #2
Thanks William
"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:ud*************@TK2MSFTNGP02.phx.gbl...
"Doru Roman" <do*******@rogers.com> wrote in message
news:On**************@TK2MSFTNGP05.phx.gbl...
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

Apr 19 '06 #3
> 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
Apr 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

56
by: ccwork | last post by:
Hi all, Here is a sample code segment: .... typedef PACKED struct { union { PACKED struct { char red:1;
2
by: Rick Ingham | last post by:
Can anyone point me to an open source library for handling packed decimal numbers from C? I'm looking to be able to integrate Cobol and C modules that both deal with p15 and P19 packed decimal...
3
by: Amaryllis | last post by:
Hi again, I'm new to the world of communicating between VB.NET and AS/400, so I've been posting a lot of questions lately since no one else in the company has done anything like this before. ...
3
by: Brian Henry | last post by:
Does anyone know of or know how to convert a COBOL packed decimal in a text file to a decimal that .NET can work with? we are importing Old COBOL data files that have packed data in them and need...
4
by: Spufi | last post by:
I have read several messages on converting packed decimals (EBCDIC) in a C++ program, but they were all for AS400 systems. I am looking for a way to convert the packed decimals in a COBOL program...
15
by: Daniel Rudy | last post by:
What is the difference between packed and unpacked structs? -- Daniel Rudy Email address has been base64 encoded to reduce spam Decode email address using b64decode or uudecode -m Why...
8
by: Philippe Martin | last post by:
Hi, Is it possible to define a packed C structure in python and pass it to the c module, or should the wrapper do that ? Regards, Philippe
1
by: nesans | last post by:
I have date stored in table as following example: 115514 Equates to March 14, 1996 it is stored from the date of 1900-01-01 to 1996-03-14 Month/Year = 1155 and day = 14
1
by: gkata | last post by:
I have a file that originated on the mainframe that contains both text and packed fields. I'm using sql loader to load a Oracle table, but I'm having difficulty with the packed fields loading...
9
by: Sikandar | last post by:
Hi, I am beginner in C. Pls let me know what is packed array in C. Where is it used? Thanks, Sikandar
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.