please help me regarding the below issues.
1)
where do gloabl variables are stored...i mean like local variables int a;
are stored in stack.
2)
int a, *b;
in the above case the variables are stored in stack
now
char *a = "hello world"
in the above case pointer "a" would be stored in stack as its a local variable now where is the value string is stored.."hello world"
also there should have been some kind of memory allocation should have been done ... but automatically its happening ..so is the complier internally calling the malloc function to allocate for the string " hello world"..in that case the string would be stored in heap...plz help me