The information in this article applies to:
SUMMARYThe source code below contains what appears to be an improper use of a pointer to a function. However, the code is correct. There are two ways to call a function when using a pointer to a function:
-or-
The behavior exhibited in the sample code is expected. The ANSI Standard (Document Number X3J11/88-002, January 11, 1988) allows
a function to be called through a pointer with the following syntax
in addition to the following non-traditional syntax:
The text below is quoted from page 41 of the "Rationale for Draft
Proposed American National Standard for Information Systems
Programming Language C" (sec. 3.3.2.2, "Function calls"):
The latter construct, not sanctioned in the Base Document, appears in some present versions of C, is unambiguous, invalidates no old code, and can be an important shorthand. MORE INFORMATIONThe sample code below demonstrates this method. Sample Code
Additional query words:
Keywords : kbLangC kbVC100 kbVC150 kbVC200 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |