Chapter 3 Exercise Set 0: Chapter ReviewΒΆ
Rearrange the program presented in Adding new functions so that the definition of
new_line
is moved after the definition ofmain
. Try to compile it and note what happens.Add several calls to the
print_twice
function in Parameters and arguments with different values as arguments. What happens if you send it anint
instead of achar
? What about adouble
? Try sending a string, like,"tryme"
, as an argument. What happens when you compile it then?Write programs to answer the two unanswered questions in the Functions with results section.