Computer Science, asked by thoudams, 10 months ago

When we write X=10 and Y=X, which of the following memory assignment is correct
a) X and Y will have same location and 10 will be stored.
b) X and Y will have two distinct locations and 10 will be stored in both.
c) X and Y will have same location and only X will contain value 10
d) X and Y will have two distinct locations and only X will contain value 10

Answers

Answered by asifkuet
17

Answer:

And The answer will be (b) X and Y will have two distinct locations and 10 will be stored in both.

Explanation:

If we take a simple graph paper and assume that the X in horizontal direction and Y to the vertical direction. Now, put those value x=10 in horizontal axis and Y= 10 to the vertical axis. And therefore we got our answer B

Similar questions