Argument Checking

Be careful when passing arguments to a function.

We'll cover the following...

Mismatched arguments

If we pass an argument of the wrong type to a function, the program may still compile and even run and spit out crazy values. Sometimes we’ll get a compiler warning, but other times we won’t.

Run the code below and examine the output.