How do you find the length of an int array??
I have int array with some values and I need to count how many values are there?
I tried a lot of things like strlen(); sizeof(); etc..
int main()
{
int iarray[10000];
// Now I have a lot of code here.
cout << "the length of the array is " << endl;
return 0;
}
so how do I find the length of the array and no I am not reading in the values straight to the int array, I read it in char array then convert it to string then reverse it and then back to char array and then I convert that char array into an int array. I then need to run a for loop. Thats why I need to find the length of the array.
Thanks in advance.