Inside a C function, if I declare something like
char *s = "Hello"; Where will the memory for the "Hello" string be allocated? Will it be on the stack or the heap?
If it is on the heap, will there be any problem if I return the address of that location (which is 's') from the function??