I have a function, which is called sometimes with regular, sometimes dynamic arrays.
If I define the function as
and send int** as a parameter, I get a warning. Opposite, if I declare
and send int as a parameter (after casting) I cannot access to array elements inside function.
What is the correctest way?
以上就是(gcc) Multi-Dim Array or Double Pointer for Warning-free Compile的详细内容，更多请关注web前端其它相关文章！