Declaring an array of unknown size

后端 未结 4 1268
一向
一向 2021-01-29 09:09

This is not specific to any programming language, the problem is \"find the index of a specified value in an array of n numbers.

Now my question is, in the code below ca

4条回答
  •  孤城傲影
    2021-01-29 09:41

    Of course the first one is correct. In the second one when you declare the array, n is not yet set. So it is not correct.

提交回复
热议问题