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

Answer Posted / ankit parikh

x-OR the number with 0x02.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ponter?

759


Why structure is used in c?

568


Define C in your own Language.

621


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

611


What's a good way to check for "close enough" floating-point equality?

613






When do we get logical errors?

623


What is the explanation for cyclic nature of data types in c?

631


Write a program to print numbers from 1 to 100 without using loop in c?

623


hi, which software companys will take,if d candidate's % is jst 55%?

1644


how we can make 3d venturing graphics on outer interface

3980


What are the advantages of c preprocessor?

694


Is javascript written in c?

565


What is the code in while loop that returns the output of given code?

1269


Is fortran still used today?

590


Why should I use standard library functions instead of writing my own?

658