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.
I think you're right. I think the solution would be to add condition at the beginning that allocates n*sizeof if n>=3 otherwise 3*sizeof.
I think you're right. I think the solution would be to add condition at the beginning that allocates n*sizeof if n>=3 otherwise 3*sizeof.
This comment is hidden because it contains spoiler information about the solution
http://pubs.opengroup.org/onlinepubs/009695399/functions/malloc.html
"If size is 0, either a null pointer or a unique pointer that can be successfully passed to free() shall be returned."
This comment is hidden because it contains spoiler information about the solution
int_t u = {.n = n};
Could you tell me how does this work?
I've been trying to run it in VS but it doesn't work and I can't find any help on the internet.