Friday, April 27, 2012

C interview test Questions and Answer in DOC

Test type subjective logical C interview questions answers




Give two use of bitwise and (&) operator?

It can be used to check whether particular bit is set or not. Eg suppose we have a number 101. Now if we want to check whether its second bit is on or off. To know this we must simply do bitwise and operation on this number with 010. Since result is 0 therefore we can acknowledge that second bit is low in our case.

It can be used to unset particular bit. Eg if you want to unset second LSB of any number then you must simply do bitwise operation between that number and …11111101.




You can see the related posts for more c interview questions answers.

Also you can find some questions mentioned in this website in doc and pdf format uploaded at mediafire.com in one of these related blog post.

No comments:

Post a Comment