Hello,

In main() I declared the variable bool polExistence[MAX_POLS][TIME_MAX]. The individual elements acquire values while in main(), before the array is sent to the function CalcChipDensity() to be used it for another operation. The problem I am facing is that values that used to be true in main() are turned into false in CalcChipDensity() before I even manipulate the array in CalcChipDensity().

The function prototype for CalcChipDensity is:
void CalcChipDensity(bool polExistence[MAX_POLS][TIME_MAX]);
CalcChipDensity() is called from main() with: CalcChipDensity(polExistence);

Does anybody know why the content of bool array elements is lost when it is transferred to another function?

Thank you!

Andy