| ??? 11/22/02 09:12 Read: times |
#32927 - RE: Char vs short unsigned int Array |
Basically`its`because`a`char`takes`8`bits`or`one`byte`of`memory`and`can`store`a`number`between`-127`and`127,or`between`0`and255`if`its`unsigned.
`short`int`uses`16`bits`or`two`bytes`of`memory`and`can`store`a`number`between`-32765`and`32765or`0`and`65536`if`its`unsigned.`so`if`your`program`only`uses`the`lower`8`bits`of`the`short`int`then`half`of`the`memory`space`is`being`wasted. And`if`you`were`wondering`I`appear`to`have`a`computer`virus`which`changes`spaces`to`````s,very`funny`oh`how`I`laughed. Jez |
| Topic | Author | Date |
| Char vs short unsigned int Array | 01/01/70 00:00 | |
| RE: Char vs short unsigned int Array | 01/01/70 00:00 | |
| RE: Char vs short unsigned int Array | 01/01/70 00:00 | |
| RE: Char vs short unsigned int Array | 01/01/70 00:00 | |
| RE: Char vs short unsigned int Array | 01/01/70 00:00 | |
| Correction | 01/01/70 00:00 | |
RE: Char vs short unsigned int Array | 01/01/70 00:00 |



