Data type for a single char flags


(Sankar Sangili) #1

What is data type to be used for flags , which are mostly a single character. I understand using string would be costing more in terms of storage.

(Michael Hunger) #2

Strings are fine as they are encoded in compressed storage anyway with only relevant bits for the representation. That even works with arrays of strings.