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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.