Array constants can only be used in initializers

来源:互联网 发布:怎么看淘宝商家级别 编辑:程序博客网 时间:2024/05/16 19:18

if you use the {...} array form in anything but an initializer.

 

WRONG

 

 

RIGHT

 

ps:When using the initializers, an array must be declared, constructed and explicitly initialized at the same time.

原创粉丝点击