address of variable

I have been reading this tutorial here .
I want to know what does it mean by address of variable in Array.please explain with example, I will be thankfull.
Last edited on
You'll have to post a link. My psychic hat is at the dry cleaner.
A pointer maybe...

1
2
3
4
int* number;
int myarray[2] = { 0, 0};

number = &myarray[0]; // The pointer number holds the address of the first integer in the array 


number would equal 0x00FAC or some kind of memory address.
An address is just the location of the variable in the memory.
Last edited on
Topic archived. No new replies allowed.