CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Reading Array Elements by Index

C code walkthrough · Question 16
easyArrays

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 int arr[5] = {10, 20, 30, 40, 50};
4 printf("%d %d\n", arr[0], arr[3]);
5 return 0;
6}

Your answer