Pointer to Function Anomaly

utzoo!decvax!harpo!utah-cs!utah-gr!thomas utzoo!decvax!harpo!utah-cs!utah-gr!thomas
Sat Jan 15 13:27:06 AEST 1983

It has nothing to do with "pointer to function", but that the first
declaration is implicitly "extern".  The following function also compiles
without complaint, and the assignment is indeed floating point.  This is
merely an example of a local declaration overriding a global one.  Notice 
that it is not even necessary to say "static" in this case.

		extern int foo;
		float foo;
		foo = 2.3;


More information about the Comp.lang.c mailing list