// archives

Function Call

This tag is associated with 2 posts

The Implications of Using Arrays as Arguments

Let’s look at the implications of (A-1)

The function call sum_arr(cookies, ArSize)

Passes the address of the first element of the cookies array and the number of elements of the array to the sum_arr() function

The sum_arr() function

Assigns the cookies address to the pointer variable arr and assigns ArSize to the int variable n

This means (A-1) doesn’t really [...]

C++ Inline Functions

Inline functions

Are a C++ enhancement designed to speed up programs

The primary distinction between normal functions and inline functions

Is not in how you code them

But in how the C++ compiler incorporates them into a program

To understand the distinction between inline functions and normal functions

You need to peer more deeply into a program’s innards than we have [...]