#include <stdio.h>
int main() {
int n=2, m = 5;
int a[1:3] = {10, 20, 30};
int b[n:m];
printf("a[1] = %d\n", a[1]);
printf("a[2] = %d\n", a[2]);
printf("a[3] = %d\n", a[3]);
b[n] = 100;
b[n+1] = 200;
b[m] = 300;
}
The output is:
a[1] = 10
a[2] = 20
a[3] = 30