Grab bits from integer value in c -


I have been given an integer designated temporary that is complex and contains 3 high, low, and current temperatures. For 0-9 bits, for short 10-19 medium, and 20-29 errors for the current temperature must hold bits with 2 bits. I'm not sure how to go about it, but I know that it includes bitwise operators.

  int high = temporary & amp; (2 ^ 10-1); Int middle = (temp> & gt; 10) & amp; (2 ^ 10-1); Int cum = (temp> gt; 20) & amp; (2 ^ 10-1);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -