Path: utzoo!utgpu!water!watmath!clyde!rutgers!sunybcs!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Newsgroups: comp.lang.c Subject: arrays -> pointers Message-ID: <3761@sigi.Colorado.EDU> Date: 10 Jan 88 05:43:43 GMT Sender: news@sigi.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Organization: University of Colorado, Boulder Lines: 26 Here is a line of code that I got out of a book: (*(mn+hsel-1)->func[vsel-1])(hsel,vsel); With it using arrays in both places that would look normal I think it would look like this: (*ms[hsel-1].func[vsel-1])(hsel,vsel); I haven't actually ran it, but in Turbo C with ALL warning checkers this compiles (except it gives me a no func. prototype warning, but I don't think you can get rid of that.) ANyway, does anyone know how to get it to that it won't use *any* array brackets? I tried stuff like: (*(*(mn+hsel-1)->func+vsel-1))(hsel,vsel); but that's not it. ANy ideas? It's not like I can't use it the other way, but it's just to satisfy my curiosity. ------------------------------------------------------------------ Frank Swarbrick | "Ignorance and prejudice -- swarbric@tramp.UUCP | And fear walk and in hand." swarbric@tramp.Colorado.EDU | --RUSH ...!{hao|nbires}!boulder!tramp!swarbric