# What's the difference?

This is a discussion on What's the difference? within the C Programming forums, part of the General Programming Boards category; int a[10];what's the difference between a and &a?int apricot[2][3][5];int *t=apricot [0][1];So t is a pointer to array or a pointer ...

1. ## What's the difference?

int a[10];what's the difference between a and &a?int apricot[2][3][5];int *t=apricot [0][1];So t is a pointer to array or a pointer to integer?apricot[0][1] means &apricot[0][1] or &apricot[0][1][0]?

2. '&' in the context that you are using gived the address of, vice the value of the variable. Take a look at: Lesson 6:Pointers and Prelude's Pointer Tutorial.

3. Originally Posted by cuicle
int a[10];what's the difference between a and &a?int apricot[2][3][5];int *t=apricot [0][1];So t is a pointer to array or a pointer to integer?apricot[0][1] means &apricot[0][1] or &apricot[0][1][0]?
In your first example there is no difference. But your question is barely comprehensible IMO.

I recommend that you print the variables yourself and investigate what the difference is.