'How does memory gets allocated for string literal in c and do we need to free it? [duplicate]
How does memory gets allocated for a string literal in C and do we need to free it? E.g.:
char *k="hello world";
Where does this string get stored and how does it get de-allocated?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
