Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen)



Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)..

Answer / ankit parikh

x-OR the number with 0x02.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?

5 Answers   HCL,


write the program to find multiplication of 2-D matrix??????????

1 Answers  


what is array?

63 Answers   Amdocs, HCL,


How we can set and clear bit in a byte using macro function?

2 Answers   L&T, Samsung,


Are global variables static in c?

0 Answers  






Why is c fast?

0 Answers  


How arrays can be passed to a user defined function

0 Answers  


Explain what are multidimensional arrays?

0 Answers  


How to print India by nested loop? I IN IND INDI INDIA

4 Answers   NIIT, Wipro,


Wt are the Buses in C Language

0 Answers   Infosys,


What is the proper way of these job Tell me about there full work

0 Answers   EDS,


though sbi was nationalized why its not comes under nationalized banks and its comes under publicsector banks

3 Answers   State Bank Of India SBI,


Categories