int a[2]; // Initial size: 2 a[0] = 0; a[1] = 1; alloc(a, 3); // Resize to 3 elements a[2] = 2; print(a);