Q221
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
AnswerB.
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: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board