by hackyhacky · 1y ago · 0 comments
In short, you can initialize an array like this, by specifying each element in order:
int foo[] = {10,20,30}; // initialize elements 0, 1, and 2
However, you can also initialize specific array elements: int foo[] = {[50] 10, [51] 20, [52] 30}; // initialize elements 50, 51, 52
"BASIC compatibility" mode uses the above syntax.