IQOD #3
Ok since everyone else already answered I'm just going to guess that "a+1" sends a decimal value instead of a octal or hex value and so some garbage value would be printed and then another garbage value.
EDIT:
Hmm guess not must do some automatic type conversion.
EDIT:
Hmm guess not must do some automatic type conversion.
a is an array if you outputed it will give you the address in the memory of the array. Say a is 0x42313 then (a+1) is 0x42314 but *(a+1) would give you the value in the memory which would be 2.
Oh. I see I thought it would do something weird like 0x42314 + 1 = 0x42315 but since the array points to int values it would actually need to be + 16 or +32 depending if it was a short or long in value. So that if you pointed to this address you would just get some garbage value because its not a whole int.
This thread is closed for replies.

