Lecture quiz 10 Be prepared to write one of the following C programs or functions. 1. Write a program to count the number of occurrences of each digit (0 through 9) in its input. See section 1.6 (Arrays) in K&R on page 22. 2. Write a C function "int power(int base, int n)" that rases base to the n-th power. See section 1.7 (Functions) and 1.8 (Call by Value) in K&R on pages 24, 25, and 27. 3. Write a C function "int getline(char s[], int lim)" that reads a line of input into s[] and returns the length of the string. See section 1.9 (Character Arrays) and 1.10 (External Variables and Scope) on pages 29, 32, and 33. 4. Write a C function "int copy(char to[], char from[])" that copies a character string from "from" into "to". See section 1.9 (Character Arrays) and 1.10 (External Variables and Scope) on pages 29, 32, and 33.