can anyone tell me why does the output of the following code give {0,1,0,1,0,1}, by that i mean to ask why does it get initialized to 0 and 1 alternatively?
module tb;
bit one[6];
int total;
initial begin
foreach(one[i])
one[i] = i;
$display("%p",one);
end
endmodule