07-27-2023, 10:15 AM
I am coding in C programming.
Let's say I have a character:
char letter=0x0000;
So the binary data for the letter is now "00000000"
let say I want change the binary data to "10000000" and later to change it "10010000", is there a bitwise operator or method that would allow me to change a "0" to a "1" or "1" to a "0" at a specific position. Also is this possible?
Let's say I have a character:
char letter=0x0000;
So the binary data for the letter is now "00000000"
let say I want change the binary data to "10000000" and later to change it "10010000", is there a bitwise operator or method that would allow me to change a "0" to a "1" or "1" to a "0" at a specific position. Also is this possible?