where is the string literal allocated ? On the stack ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Though it's not related with gcc, could anyone help me with following question:

Where is the string literal allocated ? Is it on the stack ?

For example, where is "abc" allocated ?

char * foo() {
   return "abc";
}


Thanks.

Mike





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux