1- Most importantly, what u are doing here is not proper quick sort. Read about it.
2- I don't understand why you have sent the array as "*v". Why do you think u need that. Why not just "v".
3- Putting function prototype inside another function. Not a great way of writing good code.
4- Why use strcmp() for character values?
yes, you are right that this is the most optimised quick sort and all i want is to implement "pointer to an array" logic. and also there is no use of strcmp in the first place and i could have used if statement to compare. but could you please check why have i done wrong
thanks your code is working. Have to make a minor change like instead of mysort(&s,0,6), it has to be mysort(s,0,6).
And one more thing i dont think we are using pointer to an array logic here. it is just a passing the address of an array and do the sorting.