How do I rewrite eq->pt_tree[0][0]=2; to user pointer subscript?
#include <stdio.h>
#include <stdlib.h>
///////////////////////////////
struct eq_values{
int * pt_tree[2];
};
////////////////////////////////
void main (){
struct eq_values input, *eq;
int i =2;
eq = &input;
while(i--){
eq->pt_tree[i] = (int *) malloc(3 * sizeof (int));
if (!eq->pt_tree[i]){ printf("No\n"); exit(0); }
}
eq->pt_tree[0][0]=2;
printf("%i",eq->pt_tree[0][0]);
}