Because in main
you have an array and in the function you have a pointer to that array.
int doStuff(int afm[])
is equivalent to
int doStuff(int *afm)
More Related Contents:
- C programming: array not have any bound [duplicate]
- Dynamic Array of strings [closed]
- How to resolve a variable for char length? [closed]
- C pointer to array/array of pointers disambiguation
- Difference between passing array and array pointer into function in C
- Create a pointer to two-dimensional array
- Dynamic allocation of an unknown matrix in C
- typedef fixed length array
- Difference between array type and array allocated with malloc
- printf adds extra `FFFFFF` to hex print from a char array [duplicate]
- “error: assignment to expression with array type error” when I assign a struct field (C)
- Is this a pointer to a pointer of the start of an array?
- Accessing elements of a matrix row-wise versus column-wise
- Does C99 guarantee that arrays are contiguous?
- Is `*((*(&array + 1)) – 1)` safe to use to get the last element of an automatic array?
- Strange array initialize expression?
- size of array in c
- Why can´t we assign a new string to an char array, but to a pointer?
- C pointers and arrays/ ‘sizeof’ operator [duplicate]
- Why can’t I create an array with size determined by a global variable?
- Store data in array from input [duplicate]
- Why can’t the size of a static array be made variable?
- How to define and work with an array of bits in C?
- Associative arrays in C
- Array of size 0 at the end of struct [duplicate]
- How do you get the size of array that is passed into the function?
- Cast T[][] to T*
- Detecting mismatched array enum initializers
- Declaring an array of negative length
- How many chars can be in a char array?