edited by
5,114 views
3 votes
3 votes

Which of the following is true with respect to Reference?

  1. A reference can never be NULL
  2. A reference needs an explicit dereferencing mechanism
  3. A reference can be reassigned after it is established
  4. A reference and pointer are synonymous
edited by

2 Answers

Best answer
18 votes
18 votes

A) References cannot be null,every reference refers to some object, although it may or may not be valid.

B) Reference doesn't need an explicit dereferencing mechanism

C) Once a reference is created, it cannot be later made to reference another object.

D) They are entirely different concept. Pointer stores the address whereas Reference is an alias of some variable.

https://en.wikipedia.org/wiki/Reference_(C%2B%2B)

selected by
0 votes
0 votes
like that can u provide link for ISRO-2015??
Answer:

Related questions

2 votes
2 votes
3 answers
1
ajit asked Sep 20, 2015
3,672 views
Which of the following is NOT represented in a subroutine's activation record frame for a stack-based programming language?Values of local variablesReturn addressHeap are...
1 votes
1 votes
2 answers
2
ajit asked Aug 15, 2015
2,422 views
If only one memory location is to be reserved for a class variable, no matter how many objects are instantiated, then the variable should be declared asexternstaticvolati...