+1 vote
in Software Architecture by (75.2k points)
What is reference?

(a) It is an expression that evaluates to an address where a value is stored

(b) It is a variable with the same address as another variable

(c) All of the mentioned

(d) None of the mentioned

I had been asked this question in an online interview.

Origin of the question is Visibility, Accessibility and Information Hiding in section Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
Correct answer is (a) It is an expression that evaluates to an address where a value is stored

The best I can explain: A reference is an expression that evaluates to an address where a value is stored and An alias is a variable with the same address as another variable.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...