MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following will be the correct output for the program given below? { struct abc { int i; } class Program { static void Main(string[] args) { abc x = new abc(); abc z; x.i = 10; z = x; z.i = 15; console.Writeline(x.i + " " + y.i) } } } |
| A. | 10 10 |
| B. | 10 15 |
| C. | 15 10 |
| D. | 15 15 |
| Answer» C. 15 10 | |