Tag Archives: bugs

Arrays as function arguments

When calling a function we commonly pass one or more parameters to that function. In most cases these are simple variables; integers or floats, but could be lists or arrays. In the case of passing arrays there is a hidden danger. Let’s consider a simple function:

To use this function we pass two values, … Continue reading Arrays as function arguments