I understand something like this:
int foo = 5;
int * fooPointer = &foo;
but I know you can also do something like this:
int foo[5] = {32,12,4};
int * fooPtr = food;
Which is strange because when you do it with the int
you have to put the &
operator before the foo
, but you don't have to if it is an array. You can declare a pointer and then say it is an array?