a |= 5 аналогично a = a | 5
Main.cs
using
System;
class
Program {
-
public
static
int
Main() {
-
int
a = 3;
-
a|=4;
-
Console.WriteLine(a);
-
Console.ReadKey();
-
return
0;
-
}
}
using
System;
class
Program {
-
public
static
int
Main() {
-
int
a = 3;
-
a|=4;
-
Console.WriteLine(a);
-
Console.ReadKey();
-
return
0;
-
}
}
7