

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following is the correct result for the given statement in the C#.NET statement given below? p = q struct employee { private int employee id; private string city; } employee q = new employee(); employee p; p = q; |
A. | Elements of q will be copied into corresponding elements of p. |
B. | Address stored in q will get copied into p |
C. | Address of first element of q will get copied into p |
D. | Once assignment is over.q will go out of scope and hence get exited forever |
Answer» B. Address stored in q will get copied into p | |