Need help with making a long bool array.

Hi, I want to make a boolean array that has 100 variables. Every other one needs to be false and every other true. I need to make this without actually setting 100 values like this: bool board[100] = {false, true, false, true, false, true... false, true}

Thanks

TakahuoneenSami:
Every other one needs to be false and every other true. I need to make this without actually setting 100 values like this: bool board[100] = {false, true, false, true, false, true... false, true}

Then why would you use an array? Just use bool value = index % 2;

Pieter

Is it an exercise intended to get you to use a for loop?