Golang creating a array by different way

前端 未结 0 1347
攒了一身酷
攒了一身酷 2020-12-20 18:25

What\'s the difference between those two ways of creating an array

var a = [] int {1,2,3,4,5} and var a = [...] int {1,2,3,4,5}



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