Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Functions within structures Keywords: structures Message-ID: <14431@smoke.brl.mil> Date: 12 Nov 90 13:20:31 GMT References: <2203@abcom.ATT.COM> <1990Nov10.155153.20639@chinet.chi.il.us> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 9 In article <1990Nov10.155153.20639@chinet.chi.il.us> john@chinet.chi.il.us (John Mundt) writes: > some_value = (*menu[whatever].fptr)(); > some_value = (menu[whatever].fptr)(); >produce the same assembler code on at least one machine, and both >work, though the first one is the one that is considered correct. Actually the second one is more "theoretically" correct. The function designator in the first expression is automatically converted to a pointer to the function; the second form is already that way.