I was trying to pass a 2D array to a function using command-line parameters.
First I have to escape the prototype error so used int arr[][3] but could not get through the argv error which is mentioned in the screenshot here.
Is it possible to pass a 2D array the way I am trying or am I just banging my head onto the wall 
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
void twoD_array(int arr[][3]);
int main(int argc,char * argv[])
{
if(argc == 1)
{
printf("command line argument fails\n");
return 0;
}
int i,j;
int arr[atoi(argv[1])][atoi(argv[2])];
twoD_array(arr);
printf("Your 2D array is\n");
for(i = 0; i < atoi(argv[1]); i++)
{
for(j = 0;j < atoi(argv[2]); j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
}
void twoD_array(int arr[atoi(argv[1])][atoi(argv[2])])
{
int i,j;
printf("enter elements of 2D array\n");
for(i = 0; i < atoi(argv[1]); i++)
{
for(j = 0;j < atoi(argv[2]); j++)
{
scanf("%d",&arr[i][j]);
}
}
}
void twoD_array(int y, int x, int arr[y][x]);int arr[][3]which relies on the inner dimension being3but the outer dimension is still unknown.atoi(argv[xxx])all the time