|
|
|
|
|
by Kenji
3276 days ago
|
|
I jumped into CodeWars.com just to see what it's about. Take a look at this puzzle: The code does not execute properly. Try to figure out why. int multiply(int a, char *b) { return a b;
}WTF? Who the hell multiplies a char pointer with an int? Why not just a char? Do I need to multiply the pointer address or the value the pointer points at? Do I need to check for NULL? Why not write proper code instead of solving these "puzzles"? |
|
Your comment is exactly the point of the puzzle. Change char to int and you gain access.