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.
True, it would be safer and good practice to return pointer to const.
On the other hand, I would never assume any char pointer returned by some function safe for changing unless this is clearly documented for this function. This is C, if you want to make problems you can even cast const to non-const.
Dangerous: "hello world!" is returned as a constant, which can reside in read-only memory. If the caller tried to modify the string -- which should be legal for non-"const" pointers -- it could crash.
This comment is hidden because it contains spoiler information about the solution
Clever!
How did you think about it heheheheh!
Why do I have to set a pointer before greet?