Guest

What is the relation between pointer and preferred basis?

What is the relation between pointer and preferred basis?

Grade:9

2 Answers

Arun
25757 Points
2 years ago
A very big difference between pointers and references in nearly every situation is that a pointer is an indepedent variable and can be assigned NEW address values; whereas a reference, once assigned, can never refer to any new object until the variable goes out of scope
Vikas TU
14149 Points
2 years ago
The “pointer” and “reference” both are used to point or refer an another variable. But, the basic difference among both of them is that a pointer variable points to a variable whose memory location is stored in it. The reference variable is an alias for a variable which is assigned to it.

Think You Can Provide A Better Answer ?