In the following ...
Why does <span style="font-family: Courier">$myArray + 5</span> produce a different hex value than <span style="font-family: Courier">myArray + 5</span>? eg:
In the first two printf() statements I test the values of these and they're equal to each other. My guess is that I'm missing some sort of conversion rule, but I'm not sure.
code:<HR>Code:#include<stdio.h><P>void main() {<P> int myArray[50]; int *myNewArray;<P> printf("----------[myArray]-----------------\n"); printf("myArray (hex) = %10x\n",myArray); printf("&myArray (hex) = %10x\n",&myArray); printf("(myArray + 5) (hex) = %10x\n",(myArray + 5)); printf("&myArray + 5 (hex) = %10x\n",&myArray + 5); }
Why does <span style="font-family: Courier">$myArray + 5</span> produce a different hex value than <span style="font-family: Courier">myArray + 5</span>? eg:
code:<HR>Code:----------[myArray]-------------- myArray (hex) = 12feb8 &myArray (hex) = 12feb8 (myArray + 5) (hex) = 12fecc &myArray + 5 (hex) = 1302a0
In the first two printf() statements I test the values of these and they're equal to each other. My guess is that I'm missing some sort of conversion rule, but I'm not sure.
