CJCoding With Joseph
← Back to Question List
C Code Walkthrough #16

Reading Array Elements by Index

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