The code I am currently working on assumes that a char is 1 byte long, and it depends on this assumption. If I wanted to make sure 8 bits are used could bit fields be a good alternative? Would it slow down my program if I had a bitfield on a char like so:
Even though unsigned char is already 8 bits (on most machines), would it effect my program if it where 8 bits to begin with?Code:unsigned char one:8;