[Solved] Why the address of structure and next is not same?
TL;DR Your code provokes Undefined Behavior, as already mentioned in Morlacke’s Answer. Other than that, it seems that you’re having problems on understanding how pointers work. See references for tutorials. First, From your comments When you say that there’s memory allocated for ip in this case: int i = 10; int *ip; ip = &i; … Read more