Initialize an int[] in a method call as a parameter in C

前端 未结 0 1059
执念已碎
执念已碎 2021-02-07 12:31

I have a method like this:

int find_min(int[]){

   //Do Something
}

I have to call like this:

int distance = find_min({1,2,3});
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题