Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing array elements in C
#1
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
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)