Skip to main content

Functions

  • Chapter
  • 483 Accesses

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics