Hi all,
I'm implementing a list of arrays like so:
How do I write the structure such that all arrayValues are set to 0? I'm trying to use a for loopCode:struct Cell { int arrayValues[5]; Cell *next; }; Cell *head;
outside of the struct but I'm not sure what I'm doing. Thanks for your help!Code:for(int i = 0; i < 5; i++) head->valueArray[i] = 0;




Reply With Quote