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.
The truth is, pointer don't allocate memory, just points to some memory address.
If you misuse the slice or do something with it, it'll allocate more memory because it becomes a new array.
@william
Can you elaborate?
To answer this question you need to understand the basics of the print statement.
Why pointers were used here instead of direct slice?
Can someone explain this?
I'm unable to understand this.