Hugh
0
Q:

how to make an array c++

int foo [] = { 16, 2, 77, 40, 12071 };
9
string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
18
int foo[5] = {0};
1
int foo [5] = { 16, 2, 77, 40, 12071 }; 
0
// datatype var_name[howmuch value you need to store] = {values, values}
int a[5] = {1, 2 3, 4, 5};
0

New to Communities?

Join the community