Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
https://www.geeksforgeeks.org/whats-difference-between-char-s-and-char-s-in-c/
I am wrong in the previous comment.
According to geeksforgeeks, read-only memory is located in code section of memory, and the array which was passed as a parameter is located in stack section of memory. Sorry for missleading!
I think,
char *s = "something";
will create the string in read-only memory section.
But if we pass char * as a parameter in a function, it is just a char type pointer so that it can access and operate char type array which is string which is located in the code section in memory.