0

Hi

i ve been dealing with a program and encountred a weird problem. the problem is that my array variable por[27][1]'s value changes for no reason. please take a look at the pictures in the attachment. the pictures belong to debugging.

Attachments 1.gif 93.51 KB 2.gif 94.35 KB
1
Contributor
1
Reply
3
Views
6 Years
Discussion Span
Last Post by volkang
0

the problem is solved.

i figured out that i made a mistake while memory allocation of a double pointer. since i ve not allocated enough memory for an array, the arrays share the same memory which causes the overlap. it s ok right now.

Hi

i ve been dealing with a program and encountred a weird problem. the problem is that my array variable por[27][1]'s value changes for no reason. please take a look at the pictures in the attachment. the pictures belong to debugging.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.