1.

Which of the following will be the correct result of the statement b = a in the C#.NET code snippet given below? struct Address { private int plotno; private String city; } Address a = new Address(); Address b; b = a;

A. All elements of a will get copied into corresponding elements of b.
B. Address stored in a will get copied into b.
C. Once assignment is over a will get garbage collected.
D. Once assignment is over a will go out of scope, hence will die.
Answer» B. Address stored in a will get copied into b.


Discussion

No Comment Found