Will this code create an array like this: 1,2,3,4,5,6,7,8,9,10?
I couldn't be bothered to search for something similar or to read the FAQ.int i_array[10];
for(int i=0; i<=10; i++)
{
i_array[i] = i;
}
Will this code create an array like this: 1,2,3,4,5,6,7,8,9,10?
I couldn't be bothered to search for something similar or to read the FAQ.int i_array[10];
for(int i=0; i<=10; i++)
{
i_array[i] = i;
}
Last edited by Zewu; 05-25-2002 at 09:51 AM.