Abstract
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2011 CloudShield Technologies, Inc. An SAIC Company
About this chapter
Cite this chapter
Jungck, P., Duncan, R., Mulcahy, D. (2011). Functions. In: packetC Programming. Apress. https://doi.org/10.1007/978-1-4302-4159-1_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4159-1_7
Publisher Name: Apress
Print ISBN: 978-1-4302-4158-4
Online ISBN: 978-1-4302-4159-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books