it worked if I declare the string as array of characters but not when declared as string....that should suffice for now.
Thank you for all of your inputs.
i just did it five times and it did was i supposed to. i know its not a pointer to a string. it takes a char * so it * points to the & of my char. its not undefined
It is simply fortune that in this simple program your variable are followed by a memory cell with zero. Nevertheless your code has undefined behaviour, Simply speaking it is a bad code.
*** So I'm right!!!!!!! ***
CharToInt for the win!
Last edited on