I do a simulation and want to keep the memory cost down and hence using uint8_t
, uint16_t
for the class members. Does cpp guarantee that they will be of 8 and 16 bits ?
Is there an difference based on the architecture of the process that I should be aware of ?