I read that pointers passed by malloc() & calloc() get allocated memory dynamically from the heap.
char *Name="Ann";
- In this case, is the static string {'A','n','n','\0'} also stored in the heap?
- Can I modify the string using the pointer?
I read that pointers passed by malloc() & calloc() get allocated memory dynamically from the heap.
char *Name="Ann";