Calling functions by address

T. William Wells bill at proxftl.UUCP
Wed Aug 31 20:39:25 AEST 1988


In article <6351 at pyr.gatech.EDU> byron at pyr.UUCP (Byron A Jeff) writes:
:       functions[argc-1]();

Nice try, but that is not portable. You need to write it as:

:       (*functions[argc-1])();

ANSI makes your example legal, however.

---
Bill
novavax!proxftl!bill



More information about the Comp.lang.c mailing list