try to get number of rows and column from user through array but it gives Segmentation fault at run time
#include<stdio.h>
int main(){
int rows;
int column;
int arr[rows];
int arr1[column];
printf("Enter the number of rows: ");
scanf("%d",&rows);
printf("Enter the number of column: ");
scanf("%d",&column);
printf("\n");
int i=0;
while( i<rows)
{ printf("\n");
printf("Enter the value of rows index: " );
scanf("%d",&arr[i]);
printf("\n");
i++;
}
int j=0;
while(j<column)
{
printf("Enter the value of rows index: " );
scanf("%d",&arr1[j]);
printf("\n");
j++;
}
}
// giving Segmentation fault