Advertisement
Guest User

Untitled

a guest
Jul 5th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Write a function that normally takes one argument, the address of a string, and
  2. prints that string once. However, if a second, type int, argument is provided and is
  3. nonzero, the function should print the string a number of times equal to the number
  4. of times that function has been called at that point. (Note that the number of
  5. times the string is printed is not equal to the value of the second argument; it is
  6. equal to the number of times the function has been called.) Yes, this is a silly function,
  7. but it makes you use some of the techniques discussed in this chapter. Use the
  8. function in a simple program that demonstrates how the function works.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement