Declaring and initializing arrays - 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: Declaring and initializing arrays (/showthread.php?tid=5087) |
Declaring and initializing arrays - Qomplainerz - 07-25-2023 Arrays are collections of elements of the same data type. // Declaring an array of integers int numbers[5]; // Initializing an array with values int primes[5] = {2, 3, 5, 7, 11}; |