Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Program Discussion :: Bitwise Operator

Home > Programs > Bitwise Operator

13 / 15

Write an efficient program to toggle all the bits of a number except k-th bit.


int main()
unsigned int n = 4294967295, k = 0;

Asked In ::

Post Your Answer Here:


Post Your Reply Here: