Ubuntu – Memory Lifetime within a process
I understand this might be an undefined behavior question, but I'm curious and also trying to understand the reason for the below results #include <stdio.h> #include <string.h> #include <stdlib.h> #define SIZE 100 char* memory(){ char ch[SIZE] = {0}; return ch;…