how do i declare a 2D array which is empty?

like int array[][];

then then i can decide on the number of rows and cols based on what the user given

and how do i write function for a 2D array

void array(int array[][] ) ???
or
void array(int array[row][col] , int row , int col)

??