Array and properties of an array

// ประเภท ชื่อ[ขนาด]; เช่น
int Hallway[9];
string cars[5];
double grade[4] = {4.00,3.79,2.75,3.11};
char Alpgrade[5] = {'A','B','C','D','F'};
string name[] = {"Jame","Jack","John"};Last updated
Was this helpful?

// ประเภท ชื่อ[ขนาด]; เช่น
int Hallway[9];
string cars[5];
double grade[4] = {4.00,3.79,2.75,3.11};
char Alpgrade[5] = {'A','B','C','D','F'};
string name[] = {"Jame","Jack","John"};Last updated
Was this helpful?
Was this helpful?
#include <iostream>
using namespace std;
// index example code
int main()
{ int allnumber[5] = {4,11,76,4,88};
cout << allnumber[0] << endl;
cout << allnumber[1] << endl;
cout << allnumber[2] << endl;
cout << allnumber[3] << endl;
cout << allnumber[4] << endl;
cout << allnumber << endl;
return 0;
}