ts
2 flashcards · Computer Science · by Dhdh
Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.To declare an array, define the variable type, specify the name of the array followed by square brackets and specify the number of elements it should store
string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};