Beginning C++ pp 213-270 | Cite as

Defining Functions

  • Ivor Horton


Segmenting a program into manageable chunks of code is fundamental to programming in every language. A function is a basic building block in C++ programs. So far every example has had one function, main(), and that has typically used functions from the Standard Library. This chapter is all about defining your own functions with names that you choose.


Function Definition Reference Parameter Source File Return Type Calling Function 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Ivor Horton 2014

Authors and Affiliations

  • Ivor Horton
    • 1
  1. 1.WAUnited Kingdom

Personalised recommendations