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 sometimes not.
Run the code below and examine the output.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy