#include <stdio.h>
int main() {
// the array size is 6, but only 4 elements are
// there in the initializer list
int a[6] = {10, 20, 30, 40};
// print the elements. the last two will be zero.
printf("%d %d %d %d %d %d\n", a[0], a[1], a[2], a[3], a[4], a[5]);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: