My book said array could only accept const argument, I tested it and found variable could also do. any ideas ?
this works pretty fine except the number are not what we expeted because of not be initialized.
PHP Code:
#include <iostream>
void main()
{
int i;
int t=5;
int arr[t];
for(i=0; i<t; i++)
{
cout << arr[i] << endl;
}
}