i searched for my problem, but didn’t found it.
I have a declaration of an pointer array
int *Blocks[] = {Block1,Block2,Block3,Block4};
The Blocks are arrays with a length of 50.
Now i have a for-loop, there i want to step by step init the fields
for(int i=0;i<50;++i)
{
*(Blocks[section])+i = 1;
}
The One should be a variable later.
Is it right or whats the right expression to get the array field of the selected section?
Thanks to every answer
No, that line isn’t quite right. The following is (note the position of the parentheses):
or, equivalently but more concisely: