I have a program which overwrites elements of an integer array at the end of a loop. Before the "}" the elements are correct, and after it they aren't. Any ideas?
I have a program which overwrites elements of an integer array at the end of a loop. Before the "}" the elements are correct, and after it they aren't. Any ideas?
Plenty of ideas, but without seeing the code, it would be just shots in the dark.
Post your code.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
this is a simple issue...pls post ur code