About Arrays and functions in C

Asked by At

In C, if you pass an array as an argument to a function, what actually gets passed? And Why?

1 Answers

Community On

See the standard.

On entry to the function, the size expressions of each variably modified parameter are evaluated and the value of each argument expression is converted to the type of the corresponding parameter as if by assignment. (Array expressions and function designators as arguments were converted to pointers before the call.)