this is the codeenter image description here
i have no idea why the animal->id changed after the line 71 scanf(“%d”, &choice); This line of code should not affect the animal->id.
the outputenter image description here
im using Dev C++ and this issue does not occurs previously (changed the structure of node only).
Why this issue happens?