So basically, what I'm trying to do is pass the array as an argument. I came up with such idea:
#include <stdio.h>
#include <stdlib.h>
int x;
void function(int array[][x]){
    //stuff here
}
int main(){
    x = random(10);
    int array[10][x];
    //initialize array
    function(array[10][x]);
}
I thought this should work, but it gives me a note:
expected ‘int (*)[(unsigned int)(x)]’ but argument is of type ‘int’
Any help would be appreciated.
 
     
     
     
    