In C, We can use char * to point at a string. Just like
char *s = "Hello";
.
As it be seen, Neither the variable is located dynamically on heap because there is no any dynamical functions like malloc, nor it is defined to point a certain other variable.
So my question is, Where is the literal string which variable [char *s] points to stored logically?
Is it stored in stack like any normal local variables? or, something like stack?
Actually, I am a graduate of Computer engineering department, but I haven't found and have been too much curious about how [char * string] works logically. It is a really great honor to ask right this one now.