Chapter 3 Exercise Set 1ΒΆ

  1. Rearrange the program presented in Adding new functions so that the definition of new_line is moved after the definition of main. Try to compile it and note what happens.

  2. Add several calls to the print_twice function in Parameters and arguments with different values as arguments. What happens if you send it an int instead of a char? What about a double? Try sending a string, like, "tryme", as an argument. What happens when you compile it then?

  3. Write programs to answer the two unanswered questions in the Functions with results section.