07-25-2023, 11:39 AM
Elements in an array can be accessed using their index.
int numbers[5] = {10, 20, 30, 40, 50};
printf("%d\n", numbers[2]); // Output: 30
int numbers[5] = {10, 20, 30, 40, 50};
printf("%d\n", numbers[2]); // Output: 30
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos