a function with character array

How can I write a program to call a function to perform the following:
1- intpu 10 elements of array type character
2- print the elements
3- count how many "a" is repeated
4- change each "b" with "c"
5- search about "z" if included or not
6- sort the array descending

Please help me
1: passing arrays is the same as passing other variables (if you want it to have any size, just declare it like this:
f(char array[])
2,3,4,5,6: Try them on your own
Last edited on
Topic archived. No new replies allowed.