Arrays: initializer lists


#include <stdio.h> int main() { // declare and initialize an array with an // initializer list int a[4] = {10, 20, 30, 40}; // print the elements printf("%d %d %d %d\n", a[0], a[1], a[2], a[3]); return 0; }
Click on the Run button to get started.
The code/input has changed since you last clicked on Run. Click it
again to see the updated changes.
Comments