C H A P T E R 7
Functions
Function Constructs
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.
As functions ...
Get packetC Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.