Save a Bit from int with bit mask and pointers

后端 未结 0 1233
情书的邮戳
情书的邮戳 2021-02-01 14:39

How can I save the second bit from an int value? Say, we have int a and char* pC.

  1. With pointers: pC = (char*)&a; What is
相关标签:
回答
  • 消灭零回复
提交回复
热议问题