This is an excerpt from an e-book
Code:char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }Is it correct?? Are other pointers also stored in data area.Code:Answer: string constant Explanation: 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.