Change a bit of an integer

Viewed 47994

We have an integer number

int x = 50;

in binary, it's

00110010

How can I change the fourth (4th) bit programatically?

6 Answers
Related