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

Explain what is the heap?

0 Answers  


Explain a pre-processor and its advantages.

0 Answers  


write a program to print the one dimensional array.

1 Answers  


will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);

3 Answers  


Is main a keyword in c?

0 Answers  


C program to find all possible outcomes of a dice?

0 Answers  


Difference between Function to pointer and pointer to function

0 Answers  


What is an arrays?

0 Answers  


2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above

4 Answers   Siemens,


how to build a exercise findig min number of e heap with list imlemented?

0 Answers  


program in c to print 1 to 100 without using loop

9 Answers   Wipro,


What is the benefit of using const for declaring constants?

0 Answers  


Categories