

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following will be the correct output for the program given below? namespace McqsMentorConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main(string[] args) { Sample x = new Sample(); Sample y; x.i = 9; y = x; y.i = 5; Console.WriteLine(x.i + " " + y.i); } } } |
A. | 9 9 |
B. | 9 5 |
C. | 5 5 |
D. | 5 9 |
Answer» C. 5 5 | |