Embed presentation
Download to read offline



This document discusses default arguments in functions. It explains that if not enough parameters are passed to a function call, the rightmost parameters will take on their default values as specified in the function prototype. Default values can be constants, global variables, or function calls. The function prototype sets the default values, so a function call with fewer than all parameters will use the defaults for the omitted rightmost parameters. Examples are given of calling a function with 1, 2, or all 3 parameters, with the rightmost omitted parameters taking the default values specified in the prototype.


