InterviewSolution
| 1. |
How To Allocate Memory Dynamically For A Reference? |
|
Answer» No! It is not POSSIBLE to ALLOCATE MEMORY dynamically for a reference. This is because, when we CREATE a reference, it gets tied with some variable of its type. Now, if we TRY to allocate memory dynamically for a reference, it is not possible to mention that to which variable the reference would get tied. No! It is not possible to allocate memory dynamically for a reference. This is because, when we create a reference, it gets tied with some variable of its type. Now, if we try to allocate memory dynamically for a reference, it is not possible to mention that to which variable the reference would get tied. |
|