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

An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

798


What is call by value in c?

653


Write a program to find the biggest number of three numbers in c?

690


Is c is a middle level language?

696


Why are algorithms important in c program?

717






Why is sprintf unsafe?

709


What is header file in c?

706


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

834


What is strcpy() function?

762


Explain argument and its types.

701


Define C in your own Language.

720


What is the difference between int main and void main in c?

690


How would you use the functions fseek(), freed(), fwrite() and ftell()?

795


What is the difference between pure virtual function and virtual function?

746


What do header files do?

700