Ask Question

Write the prototype for a function named showValues. It should accept an array of integers and an integer for the array size as arguments. The function should not return a value.

+5
Answers (2)
  1. 23 September, 07:55
    0
    void showValues (int [maximum volume], int);
  2. 23 September, 07:55
    0
    void showValues (int * array, int array_size) {

    int i;

    for (i = 0; i < array_size; i++) {

    printf ("%d/n", array[i]);

    }

    }

    Explanation:

    I am going to write the prototype of a function as a c code.

    array is the array as an argument, and array_size is the argument for the size of the array.

    void showValues (int * array, int array_size) {

    int i;

    for (i = 0; i < array_size; i++) {

    printf ("%d/n", array[i]);

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write the prototype for a function named showValues. It should accept an array of integers and an integer for the array size as arguments. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers