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
Which of the following is the correct result for the given statement in the C#.NET statement given below?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following is the correct result for the given statement in the C#.NET statement given below?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!