Jasmina Pandit answered Try useing bitwise | (OR) operator to set the bit and &(AND) operator to clear it.