2011 | OriginalPaper | Buchkapitel
Functions
verfasst von : Peder Jungck, Ralph Duncan, Dwight Mulcahy
Erschienen in: packetC Programming
Verlag: Apress
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
Just like C, a packetC
function
is a discrete subprogram that can be invoked from multiple places in the program text and that returns a value (which may be of type
void
). The
function call
or
function enable
can associate a set of values with a corresponding set of variables declared as the function’s
parameters
, which act as variables local to the called function. C programmers will find packetC functions to play the same role and operate in a familiar manner. In addition, functions play new roles in packetC in support of parallel processing and scoping for the purposes of data hiding.