Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

inverse binary string bit by bit

if i have a binary string for example x='0110101' and i need to inverse it's bits bit by bit. for example : inverse 1st bit >> x='1110101' inverse 2nd bit >> x='0010101' 3rd bit >> x='0100101'

and so on. how can i do that.