This is my first post and I am wondering, what's wrong with the code written below? I get an error message that says "R6010 -abort() has been called"
I am actually trying to write the biggest palindrome out of a three digit number. I know there probably are easier ways but I haven't learned those codings and I am just trying to solve this problem from the knowledge that I already have. So I am not intrested in using reverse or something like that, just want to know what I have done wrong?
I don't know if this is what you meant but I solved it anyway. I forgot that the length is 5 and the biggest pos = 4 and not 5, so I had to decrease the pos with 1 number on all of them.
However the whole things gave a wrong answer, here is the right one if somebody is intrested:
@dawoodr:
That's exactly what he meant.
To access the first item, you should use index 0.
To access the fifth item, you should use index 4.
Accessing an item you have no access to, will crash your program.