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 the properties of union.

0 Answers  


What is ambagious result in C? explain with an example.

0 Answers   Infosys,


What is c mainly used for?

0 Answers  


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

0 Answers  


errors in computer programmes are called

1 Answers   NET,






Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?

1 Answers   Microsoft,


What are the different file extensions involved when programming in C?

0 Answers  


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

0 Answers  


C program to find frequency of each character in a text file?

6 Answers  


how to use showbits function?

2 Answers   Infosys, TATA,


what is the output of the following code? main() { int I; I=0x10+010+10; printf("x=%x",I); } give detailed reason

3 Answers  


What is #define?

0 Answers  


Categories