前言:
位运算符是用来对二进制位进行操作的
c语言中有6种位运算符:
& 按位与 [链接]: https://blog.csdn.net/weixin_/article/details/
| 按位或 [链接]:https://blog.csdn.net/weixin_/article/details/
^ 按位异或 [链接]:https://blog.csdn.net/weixin_/article/details/
~ 取反 [链接]:https://blog.csdn.net/weixin_/article/details/
<< 左移 [链接]:https://blog.csdn.net/weixin_/article/details/
>> 右移 [链接]:https://blog.csdn.net/weixin_/article/details/
本篇讲 按位取反 ~ 运算符
对所有整数取反=本身的相反数-1
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/222593.html原文链接:https://javaforall.net
