Skip to content
Advertisement

Tag: memory-address

Why the address of the pointer variable printed differently between two printf statements without any modification to the variable?

In below simple c test program two printf statements return different values. ( check last four printf statements). output : – I am running it in eclipse ide and using Ubuntu Linux. Why does it behave differently? Answer In several places you are using the wrong format specifier to printf. In particular, on this line: The first parameter has type

Advertisement