Hi there,

I'm currently working on a new project where I have to use a binary tree which may become rather big. Therefore I need to keep the nodes themselves as small in size as possible. Quite frequently I have integer values which range only from 0 to 255, so they could be saved in 1 Byte. In original C, there is the "byte" type for that. However, it seems not to exist in lite-C according to the manual. Can I define a data-type which stores an integer value between 0 and 255 in 1 Byte of memory? If so, how do I do that?

EDIT: How about True/False-Values? Boolean values take only 1 bit to save. It would be a real waste to use even a "short" integer for that. Is there any more "economic way" to do this?

Thanks in advance,


Alan

Last edited by Alan; 02/02/10 18:36.