What is the difference between & and && operators in C#

前端 未结 9 872
误落风尘
误落风尘 2020-12-02 17:03

I am trying to understand the difference between & and &&operators in C#. I searched on the internet without success. Can somebody plea

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 17:33

    & is a bitwise operator and && is a logical operator that applies to bool operands.

提交回复
热议问题