Page 1 of 1

Which of the following is the correct result for the given statement in the C#.NET statement given below?

Posted: Wed Jul 13, 2022 7:56 pm
by answerhappygod
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