I have a loop - and within that loop I want to create an array.

Code:
for(k = 0; k < nKeywordskt; k++) {
	if (flags[k] & bitFw) {
		x = rwslot[k] & 65535;
		y = (x * 2);
		fwMapOff = fwmap[y];							// Offset into fw2list
		fwMapLen = fwmap[y + 1];						// Length of run in fw2list
		int fw2On[fwMapLen];		// **** this is the array I want to "re-create" within the loop ****
		for (x = fwMapOff; x < (fwMapOff + fwMapLen); x++) 
		{
			z = fw2list[x];							// This is the fw2Rules slot to run for the FW found on this WORD [k]
Each time I hit the line of code int fw2On[fwMapLen]; I want to re-create the array fw2On[] with the size fwMapLen.

This size - fwMapLen - will be different each time I loop through the k-loop.

Is this kind of re-dimension allowed?

Do I have to "set each" spot to 0 - or is it pre-initialized each time?

Is it bad for me to do this - should I "know" the max fwMapLen size before I start looping and make my "work array fw2On[]" only once - at the beginning??

Help!!!