1
0

06-array.c 241 B

123456789101112
  1. #include <stdio.h>
  2. int main() {
  3. int numbers[5] = {1, 2, 3, 4, 5};
  4. printf("First element: %d\n", numbers[0]);
  5. printf("Second element: %d\n", numbers[1]);
  6. for (int i = 0; i < 5; i++) {
  7. printf("%d ", numbers[i]);
  8. }
  9. return 0;
  10. }