First off, get it to compile! "red" is not declared:
queues = (struct red*)malloc(sizeof(struct queue));
I assume you meant:
queues = (struct queue*)malloc(sizeof(struct queue));
Then just use it as an array:
queues->array[1].number = 6;
struct node *n = queues->array;
for (int i = 0; i < 10; i++)
{
printf("%u\n", n[i]);
}
Will give you:
5
6
0
0
0
0
0
0
0
0
(Though the zeros may be replaced with random data, depending on your compiler)