It's not wrong just different
They probably didn't explain what they're showing you there which would've covered why they can (read: will ) be different.
Basically those two lines are printing the memory address a is pointing to in decimal and hex (%d = print decimal, %p = print pointer, which outputs in hex)
0x403000 is the same as 4206592 decimal - those two values will be different for everyone
They probably didn't explain what they're showing you there which would've covered why they can (read: will ) be different.Basically those two lines are printing the memory address a is pointing to in decimal and hex (%d = print decimal, %p = print pointer, which outputs in hex)
0x403000 is the same as 4206592 decimal - those two values will be different for everyone


And I'm honored to be on your respect list. 