Hello,
Can someone break down what this array loop means exactly? Mathematically I can't make any sense of it. I've reread this section of my book multiple times, but it's not sinking in.
int alpha[a];
int j;
for(j = 0; j< 5; j++)
{
alpha[j] = 2 * j;
if(j % 2 == 1)
alpha[j - 1] + j;
}
I'm new to C++ ; this was quiz question I missed. The correct answer was alpha = {3, 2, 9, 6, 8} - just not sure how/why! TY.