C Program Functions and Pointers Create a function called terminate that asks: integer array to be referenced for modification integer value to serve as an indexing variable. This function sets the value of an element in the array to 0 based on the index value provided. This function does not return anything. In the main function, write a program that asks the user for an integer input and call the terminate function by passing the array and the inputted integer. Print the contents of the modified array where each elements are separated by a space. Input 1. One line containing an integer input Output Ten int outputs each separated by a space Enter·a·number(0-9):·1 1·0·1·1·1·1·1·1·1·1 Create a function called terminate that asks: integer array to be referenced for modification integer value to serve as an indexing variable. This function sets the value of an element in the array to 0 based on the index value provided. This function does not return anything. In the main function, write a program that asks the user for an integer input and call the terminate function by passing the array and the inputted integer. Print the contents of the modified array where each elements are separated by a space. Input 1. One line containing an integer input Output: Ten int outputs each separated by a space Enter a number(0-9): 1 1 0 1 1 1 1 1 1 1 1
C Program Functions and Pointers
Create a function called terminate that asks:
- integer array to be referenced for modification
- integer value to serve as an indexing variable.
This function sets the value of an element in the array to 0 based on the index value provided. This function does not return anything.
In the main function, write a program that asks the user for an integer input and call the terminate function by passing the array and the inputted integer.
Print the contents of the modified array where each elements are separated by a space.
Input
1. One line containing an integer input
Output
Ten int outputs each separated by a space
Create a function called terminate that asks:
- integer array to be referenced for modification
- integer value to serve as an indexing variable.
This function sets the value of an element in the array to 0 based on the index value provided. This function does not return anything.
In the main function, write a program that asks the user for an integer input and call the terminate function by passing the array and the inputted integer.
Print the contents of the modified array where each elements are separated by a space.
Input
1. One line containing an integer input
Output: Ten int outputs each separated by a space
Step by step
Solved in 2 steps with 1 images