whats in the array

Write your question here.
greetings all first time here.

some code submitted recently part thereof
can anyone tell me what numArray[j]=true does.
does it assign a non-zero to each element of the array
as generally 1 is true and 0 is false or what value is assigned
thanks
1
2
3
4
5
 int range =100;
  bool numArray[100];
for(int j=0;j<range;j++)
{
  numArray[j]=true;
numArray stores values of type bool (true or false)
line 5 just does assgment. It is no different from
1
2
bool x;
x = true;
Topic archived. No new replies allowed.