How do i pass an array function without using pointers

前端 未结 7 879
广开言路
广开言路 2021-02-05 21:04

I have been asked in an interview how do you pass an array to a function without using any pointers but it seems to be impossible or there is way to do this?

7条回答
  •  情话喂你
    2021-02-05 21:33

    How about varargs? See man stdarg. This is how printf() accepts multiple arguments.

提交回复
热议问题