Theocacao
Leopard
Design Element
Comment on "Intro to Memory and Arrays in C"
by Martin — Oct 17
the full code got cut up

#include <stdio.h>
#include <time.h>

#define COUNT 5

main()
{
srand(time(NULL));

int stackArray[COUNT];
int i;

for(i=0; i< COUNT;i++){
stackArray = rand();
}

for(i=0;i<COUNT;i++){
printf("Value %i: %i\n", i, stackArray);
}

stackArray[COUNT] = rand();
printf("Value %i: %i\n", COUNT, stackArray[COUNT]);
}
Back to "Intro to Memory and Arrays in C"
Design Element

Copyright © Scott Stevenson 2004-2015