EFI Interview Question
Software Engineer / Developersthere is nothing wrong with the function....dynamic memory will not be deleted until the programmer explicitly deletes it...hence even if the function scope is over the pointer will point to the same memory
I can't post the link to wiki....
But anyway,
I did some experiments.
You are right.
The programs can return the address correctly.
But dangling pointer could cause some security problems...
You should also say that in interviews... I think
It should give you NULL reference....
- Anonymous May 23, 2011