| 之间有什么区别?和||或者 C# 中的运算符?
class Program { static void Main(string[] args){ int a = 4; int b = 3; int c = 0; c = a | b; Console.WriteLine("Line 1 - Value of c is {0}", c); Console.ReadLine(); } }
输出
Value of c is 7 Here the values are converted to binary 4−−100 3−−011 Output 7 −−111登录后复制