SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the concept of a dangling pointer.
A pointer pointing to a memory location that has been deleted (or freed) is called dangling pointer.
It will show random values while printing.