views:

97

answers:

3

Hello,

I need to a variable which holds a 24 bits value, what should I use ? Also, do you know a list of all available types in Objc?

Thanks a lot.

+3  A: 

You could use an int. It will hold 24 bits. (32, actually)

Mr. Shiny and New
I'm quite sure that's what he really wants.
Georg
+1  A: 

An array of 3 unsigned chars will be 24 bits (on most systems).

dirkgently
+1  A: 
Tilo Prütz