J
Jay G. Scott
this should be trivial, yet i can't find it in a tutorial.
int AAA[12][234];
int BBB[98][2478];
i want to call f(AAA,12,234) and f(BBB,98,2478).
how should f be declared?
int f( huh?, int ll, int rr)
{
int a,b;
for( a=...
for( b=...
huh2?[a] = 234.4;
return 0;
}
i'm starting to get the impression that f() can't use int **huh,
because that's pointers to pointers, whereas AAA is 12*234
contiguous ints. i really do want to pass f the address of ll*rr
contiguous ints so i don't have to "hardcode" for each array
size i might use.
what's the right way? i won't be doing 3 indexes, but is
the generalization to 3 obvious?
i gotta be missing something.
j.
int AAA[12][234];
int BBB[98][2478];
i want to call f(AAA,12,234) and f(BBB,98,2478).
how should f be declared?
int f( huh?, int ll, int rr)
{
int a,b;
for( a=...
for( b=...
huh2?[a] = 234.4;
return 0;
}
i'm starting to get the impression that f() can't use int **huh,
because that's pointers to pointers, whereas AAA is 12*234
contiguous ints. i really do want to pass f the address of ll*rr
contiguous ints so i don't have to "hardcode" for each array
size i might use.
what's the right way? i won't be doing 3 indexes, but is
the generalization to 3 obvious?
i gotta be missing something.
j.