ok... thats really not what i want to do but thx for answering... what i want somthing like the following
Code:
#include...
char array(int a){
int b,c, d;
char array1[a][a];
for(b =0; b<=a;b++){
for(c=0;c<=a;c++){
d = rand()%2;
array1[b][c] =d
}
}
return (somthing...dont know what goes here);
}
int main(){
int x;
scanf("%d", &x);
char array[x][x] = array(x); //pretty sure this is wrong
...
...
return 0;
}
somtheing like that where an array is created in a function... is there a way to return that function created array back into the main?