This is an excerpt from an e-book
char *temp = “string constant";
Is it correct?? Are other pointers also stored in data area.Code:
The program suffers no problem and gives the output
correctly because the character constants are stored in code/data area and not
allocated in stack, so this doesn’t lead to dangling pointers.