Skip to content

Commit

Permalink
Language.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpgit committed Apr 7, 2024
1 parent 64cc59b commit 77e053b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/arrays-as-function-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ array element**. So, you can just declare the argument as an pointer to an
element type and pass in an array name.

The reason for this is that as C can only pass arguments by value, copying array
data to function arguments would be very inefficient.
data to function arguments would be quite inefficient.

Even if you declare a function argument as an array, **the argument is always
treated as a pointer**. The optional array size is accepted but ignored. Do
Expand Down

0 comments on commit 77e053b

Please sign in to comment.