When I use compile this I get the error message:
error: invalid use of array with unspecified bounds
for each line in the void fucntion, referring to the lines, i get this duplicate error message
tester[1][1]=1;
tester[1][2]=2;
tester[2][1]=3;
tester[2][2]=4;
Here is the sample code:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void junk( int tester[ ][ ] );
main()
{
int tester[2][2];
junk(tester);
}
void junk( int tester[ ][ ] )
{
tester[1][1]=1;
tester[1][2]=2;
tester[2][1]=3;
tester[2][2]=4;
}
Start Free Trial