I'm currently reading the book "C++ primer plus 6th edition" and it says the char pointer needs to be a constant. I don't really understand the explanation so I did some tests.
I don't understand why when I use cin to an already used char pointer, it crashes. But when I assign it, it doesn't crash.
I studied Java so all this memory stuff was hidden from me, so this is a nice challenge.