how we gave variable name with new if we have multiple variable stored in heap how we can identify it
Identify variable name
Hi @Aditya-Kushwaha-914550392281281, we did’nt gave variable name with new . new int returns a pointer to the dynamically allocated address so int*p=new int ; here p is the pointer to the dynamically allocated memory for int.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.