Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter's 9, 10, 11, 12 - Coggle Diagram
Chapter's 9, 10, 11, 12
-
Functions
// Defining the function area(): // Computes the area of a rectangle. double area( double width, double len) { return (width * len); // Returns the result. }
A function’s local objects are placed on the stack—the parameters of the function are placed first and in reverse order. The stack is an area of memory that is managed according to the LIFO (last in first out) principle
-
References and Pointers
The ampersand character, &, is used to define a reference. Given that T is a type, T&
denotes a reference to T.
If you need to read arguments, but not copy them, you can define a read-only reference
as a parameter
-
-