Boolean declaration

 

Hi!


I'd like to declare a boolean array within 20 elements.

This is my wrong code:

bool lotsize[0]=false;
bool lotsize[1]=false;
bool lotsize[2]=false;
...
bool lotsize[19]=false;

How can I do it well?

Thanks!

 

bool lotsize[20];

 
phy:
bool lotsize[20];

Thank you phy!


In this case what is the default value (false or true)?

 
should be all zero, zero = false.
Reason: