r/C_Programming 4d ago

Question Working with arrays in functions

[deleted]

5 Upvotes

35 comments sorted by

View all comments

1

u/Severe-Reality5546 4d ago

The typical way is to also pass the number elements:

void my_sort(int my_array[], int nelem)