Pointers

  1. Initialize arrays
    Implement the following functions:
    int main();
    void zeros(int* array, int count);
    void ones(int* array, int count);
    void range(int* array, int count);
    zeros(.) gets an array and the number of its elements. It should set each element to zero. ones(.) does the same as zeros, but sets each value to one. range(.) sets the array to 0, 1, 2, 3, ..., count-1
    Implement main(.) to initialize an array, call each of the above functions and print the array right after each function call.
    Name the source file: initialize_arrays.c
  2. String operations
    Implement the following functions:
    int main();
    void to_upper(char* array);
    bool has_upper(char* array);
    bool is_upper(char* array);
    void to_lower(char* array);
    bool has_lower(char* array);
    bool is_lower(char* array);
    Name the source file: string_manipulation.c