Pointers, arrays and dbx problems.
George Kyriazis
kyriazis at pawl20.pawl.rpi.edu
Sun Feb 14 17:17:48 AEST 1988
Hello world. I first found that peculiar behaviour trying to
write a computer graphics program involving points, lines and polygons.
Anyway, here it is:
int (*lines)[2];
main() {}
is a dummy program that just defines this data structure. What I actually
want is a pointer to arrays of 2 ints. I believe that int *lines[2] will
do the reverse, ie. give me two pointers to int.
Anyway, when I run it thru dbx on a SUN and ask 'whatis lines' I get this:
int (*lines)[8196];
As far as I know, this is a *BIG* mistake? Or am I wrong?
I'll try to compile the same thing to different machines and see what I get
there...
*******************************************************
*George C. Kyriazis * Gravity is a myth
*userfe0e at mts.rpi.edu or userfe0e at rpitsmts.bitnet * \ /
*Electrical and Computer Systems Engineering Dept. * \ /
*Rensselear Polytechnic Institute, Troy, NY 12180 * ||
******************************************************* Earth sucks.
More information about the Comp.lang.c
mailing list