#include <acknex.h>
var vars[8][8];
void print_var(var **input_array, unsigned int index_x, unsigned int index_y)
{
var output_var = input_array[index_x][index_y];
printf("array[%.0f][%.0f] = %.0f", (double)index_x, (double)index_y, (double)output_var);
}
void main()
{
int i;
int j;
for(i = 0; i <= 8; i++)
for(j = 0; j <= 8; j++)
{
vars[i][j] = 100;
}
wait(1);
print_var(vars, 8, 8);
}
NOOO WOOORK.
The problem is to pass as parameter the address of a variable dimensional
Look:
void print_var(
var **input_array, unsigned int index_x, unsigned int index_y)
{
var output_var =
input_array[index_x][index_y];
...
This is where the problem is!
How can be indicated by parameters the address of a variable BI-Dimensional