Compound literals with pointers

前端 未结 0 1146
自闭症患者
自闭症患者 2021-02-07 14:07

To pass a 2d array to a function with the array inline, I can do the following:

print_arr2((int[2][3]) {{1,2,3}, {3,6,9}}, 2);
print_arr2((int[][3]) {{1,2,3}, {3,         


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