Path: utzoo!utgpu!water!watmath!clyde!rutgers!sunybcs!bingvaxu!leah!itsgw!imagine!pawl20.pawl.rpi.edu!kyriazis From: kyriazis@pawl20.pawl.rpi.edu (George Kyriazis) Newsgroups: comp.lang.c Subject: Pointers, arrays and dbx problems. Keywords: Arrays, dbx arror?? Message-ID: <360@imagine.PAWL.RPI.EDU> Date: 14 Feb 88 07:17:48 GMT Sender: news@imagine.PAWL.RPI.EDU Reply-To: kyriazis@pawl20.pawl.rpi.edu (George Kyriazis) Organization: RPI Public Access Workstation Lab - Troy, NY Lines: 24 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@mts.rpi.edu or userfe0e@rpitsmts.bitnet * \ / *Electrical and Computer Systems Engineering Dept. * \ / *Rensselear Polytechnic Institute, Troy, NY 12180 * || ******************************************************* Earth sucks.