Setting nth bit

Question | Apr 20, 2016 | hkumar 

Which one of followings is the right way in C++ to set (only) 7th bit (b31....b0) in "int x" :

2015 nextptr