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.
Despite the shortness of the solution, I can't say it is the best practice because there is a performance problem.
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.
There are some unnecessary operations in the array as '$a * $b + $c' and '$a + $b * $c'
Why do I have to set a pointer before greet?