I have past down the address of a structure to a function. As I debug it within the function, I see values are proper assigned to the member of the structure. However upon the return of the function. the value of the member seems to be incorrectly assigned.
for example, in the structure, there are this two element
int id = 0x6839
char node = 0x1C
when they are being assigned in the members of the structure.
However the value shift within same address structure after the function call
int id = 0x00
char node = 0x1C839
Does anyone know what to do to correct this problem?C