Help me fix this code
Objective - To create a program that uses double pointer to accept the input of a 2D array through a function and prints it in reverse order My code - #include<stdio.h> #include<string.h> #include<conio.h> int pointer_reverser(char** array); int main() { clrscr(); char arr[3][3]; printf("Please enter 9 elements to be entered in a 3 by 3 array: "); for (int i=0;i<3;i++) { for (int j=0;j<3;j++) { scanf("%c",&arr[i][j]); } } printf("Thank you for your input. Here is your reversed array: "); pointer_reverser(*arr); getch(); } int pointer_reverser(char** array) { char* ptr1 = NULL; char** ptr2 = NULL; ptr1 = array[3][3]; ptr2 = &ptr1; for (int i=0;i<3;i++) { for (int j=0;j<3;j++) { printf("%c", *ptr1); ptr1--; } ptr2 = &ptr1; } } I get a segmentation fault mid-program when compiling and running with GDB Online