Chapter 3 Exercise Set 0: Chapter ReviewΒΆ
Rearrange the program presented in Adding new functions so that the definition of
new_lineis moved after the definition ofmain. Try to compile it and note what happens.Add several calls to the
print_twicefunction in Parameters and arguments with different values as arguments. What happens if you send it anintinstead 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.