function prototype
function prototype
In programming, a declaration of a function to the compiler indicating what types of parameters are passed to it and what value is returned. The compiler can then report an error if a function within the program is not written to conform to the prototype. See function.
The following C example is the simplest prototype. The function displays "Hello World" on screen without receiving any parameters or returning any values to the calling instruction. "Void" means "nothing."
Prototype
void printHelloWorld(void);
Function
void printHelloWorld(void)
{
printf ("Hello World\n");
}
Prototypes can be much more complicated as in this C example where five parameters are passed to a graphics function.
void DrawTransparentBitmap(HDC hdc,
HBITMAP hBitmap,
int xStart,
int yStart,
COLORREF cTransparentColor);
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 2003-2025 Farlex, Inc
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.