Can you post the program's output that shows the problem?
I dont know how you got "0". I just ran your code on my machine and got the following output.
Initial value: 0 Incremented value: 15 15
We'd appreciate it if you'd execute test programs BEFORE posting them to verify their behavior.Quote:
it turns out this example works.