Good day!
Since both boolean and byte (variable type) are 1 byte (data volume), it's logical in a way of memory saving to use byte for 8 bits (1 byte) instead of 8 booleans (8 bytes).
So, for example a=158 and it stands for next array of bits - 10011110. If I want to change for example bit #5 (start from 0), any way to do it with inbuilt C++ functions?
byte a=158; //10011110
SomeMagic to set bit #5 to 1: 10011110->10111110
print(a); //190