The size of a bool is claimed to be 1 byte using this command:
printf("%ld\n", sizeof(bool));
But this doesn't seem very efficient. So how are bools stored in memory?
Will the OS search for other bools and store up to 8 bools in a byte, will each bool be stored in a single byte, resulting in 7 unused bits or are they stored differently?