Accessing array elements in C - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32) +--- Thread: Accessing array elements in C (/showthread.php?tid=5088) |
Accessing array elements in C - Qomplainerz - 07-25-2023 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 |