how to initialize a array out of line

后端 未结 0 478
日久生厌
日久生厌 2020-12-08 09:42

How to initialize an array, out of the length definition line?

int a[5]; //this line fixed, only state the array name and size
a = {1,2,3,4,5};  //error: Arra         


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