1
Loading subject content…
Loading subject content…
Loading practice questions…
What is the output of the following program?
var p = new Point(2, 3);
var q = p;
q.X = 10;
Console.WriteLine(p.X);
struct Point
{
public int X, Y;
public Point(int x, int y) { X = x; Y = y; }
}What is the output of the following program?
var p = Perm.Read | Perm.Write;
Console.WriteLine((int)p);
[Flags] enum Perm { Read = 1, Write = 2, Exec = 4 }