Why is it giving wrong output while submitting, Is anything wrong?
Rotate Image 2D array
Okay. By the way, I have a doubt, how do we pass an array by taking the size of the array as n*n and not a[1000][1000]. It is giving me an error while calling the function, it says the function is not declared.
I tried several ways to pass this array to the function but didn’t work.
dynamically allocate 2d array and pass it is a pointer .
int *arr=new int [n];
for(int i=0;i<n;i++){
arr[i]=new int [n];
}
call(arr,n);
function call(int **arr,int n){
something
}
https://www.tutorialspoint.com/Passing-two-dimensional-array-to-a-Cplusplus-function
