having trouble finding this anywhere, on a 32bit computer, how many bytes does it take to store ; long int, unsigned char,float, double
any help is much appreciated

long int - 4 bytes
char/unsigned char - 1 byte
float - 4 bytes
double - 8 bytes

The same for x64.

This is a very simple question you might have easily looked up from a search engine
you might consider that next time ;)

http://msdn.microsoft.com/en-us/library/s3f49ktz(v=vs.71).aspx

(edit) for the record the term is "Byte" as opposed to "Bite".
(edit2) it also might vary on how many bytes are actually used, depending on your compiler.

having trouble finding this anywhere, on a 32bit computer, how many bytes does it take to store ; long int, unsigned char,float, double

You're having trouble finding it because there's no absolute answer. Only char has a guaranteed size (it's always going to be 1), the rest are implementation dependent (though nullptr listed common sizes on a 32-bit implementation).

Of course, on any given system (OS + compiler) on which you work, you can check the size of each data type with the sizeof( ) operator.

cout << sizeof( int );  //repeat for each type you're interested in.

The sizes that were given above are quite common. You'll most often find differences in the long double type.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.