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.
That's genius!
Nice solutions.
Nice!
A nice first challange to undestand how CodeWars works! Thanks
this is undefined behavior, the most dreaded aspect of C.
Anything can happen if you write beyond the bonds of a buffer. Your program could crash. Or you could be overwriting other variables. Or something else.
It depends on the platform, the state of the program, how variables were allocated (stack, heap,
.data
section,.rodata
section ...), and many other factorsCan anyone explain me why this happens when you declare this in C-
char *string = malloc(sizeof(char));
this should technically create a string of size 1;
but it doesn't,
this is able to store strings upto 30+ characters somehow, why is this happening /where am I wrong?
I enjoyed this simple problem. I was able to use match bindings in Rust to solve the "Alex, Joe, and n others like this" element of the problem. I just learned about match bindings today.