For the C statement given below i would like to know where the memmory allocation will take place.
char* ptr="Hello";//ptr is a automatic variable
then the pointer variable ptr will be allocated on the stack,but where will this string "Hello" be allocated. Is it on Stack or on Heap? And what about memory allocation for initialization statement like char ptr[]="Hello";