[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion

23 / 123

Which bitwise operator is suitable for turning OFF a particular bit in a number?

Answer:

The bitwise operator xor i.e '^' is used to turn off a particular number

by performing the following operations say we want to turn the ith bit off in a number n

then n = n^(1<<i)

Asked In ::

Post Your Answer Here:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.