Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ arrays

string cars[4] = {"Volvo", "BMW", "Ford", "Toyota"};
int myNum[3] = {10, 20, 30};

cout << cars[0] << endl;
cout << muNum[1] << endl;

/*
Result:
Volvo
20
*/
 
PREVIOUS NEXT
Tagged: #arrays
ADD COMMENT
Topic
Name
6+2 =