[Solved]1 Write Function Puts Repeated Values Arrays Consecutive Indices 1 2 4 2 3 4 3 2 1 Example Q37243652

EDIT: Need coded in C
1) Write a function that puts all the repeated values in the arrays at consecutive indices A-1,2,4, 2, 3, 4, 3, 2, 1 Example: The array omes:A-,1, 2, 2,2,4, 4, 3, 3) 2) Write a function that removes the redundant values from the array and replaces them with-1 Example The array becomes A- 14,1, 2, 3,4, 4, 5, 6, 2,7 :A- 14, 1,2,3,-1,-1,6,-1,7) 3) Write a function that prints the values in the array that appear once Example: Output: A- 14,1, 2, 3,4, 4, 5, 6, 2,7 1, 3. 5, 6,’7 4) Give the declaration and initialization of the array: int A[51 1, 2, 3, 4, 5]; Write a function that print out the following patter. 1-1, 1-2,1-3. 1-4. 1-5 2-2,2-3, 2-4, 2-5 3-3, 3-4, 3-5 4-4, 4-5 5-5 Note that the values should be printed out from the array Show transcribed image text 1) Write a function that puts all the repeated values in the arrays at consecutive indices A-1,2,4, 2, 3, 4, 3, 2, 1 Example: The array omes:A-,1, 2, 2,2,4, 4, 3, 3) 2) Write a function that removes the redundant values from the array and replaces them with-1 Example The array becomes A- 14,1, 2, 3,4, 4, 5, 6, 2,7 :A- 14, 1,2,3,-1,-1,6,-1,7) 3) Write a function that prints the values in the array that appear once Example: Output: A- 14,1, 2, 3,4, 4, 5, 6, 2,7 1, 3. 5, 6,’7 4) Give the declaration and initialization of the array: int A[51 1, 2, 3, 4, 5]; Write a function that print out the following patter. 1-1, 1-2,1-3. 1-4. 1-5 2-2,2-3, 2-4, 2-5 3-3, 3-4, 3-5 4-4, 4-5 5-5 Note that the values should be printed out from the array
Expert Answer
Answer to 1) Write a function that puts all the repeated values in the arrays at consecutive indices A-1,2,4, 2, 3, 4, 3, 2, 1 Exa… . . .
OR

