Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!cogen From: cogen@XN.LL.MIT.EDU (David Cogen) Newsgroups: comp.lang.c Subject: procedure pointer question Message-ID: <861@xn.LL.MIT.EDU> Date: 15 Jan 88 14:59:23 GMT Organization: MIT Lincoln Laboratory, Lexington, MA Lines: 17 Consider the following fragment: { double sin (); double (*fun) (); fun = sin; printf ("%f %f", fun(1), (*fun)(1)); } Both invocations of fun work and give the correct result. But it seems that one of the invocations is wrong (the first). Why do they both work? Will they always work in all cases? -- |-|-----|-|-----|-| | |David S Cogen| | |-|-----|-|-----|-|