Question: Could you rewrite the C program and tell me where I have gone wrong? Write a program to arrange a set of fruit names in

Could you rewrite the C program and tell me where I have gone wrong?
Write a program to arrange a set of fruit names in lexicographically sorted order. Input format The first line of the input consists of the value of n. Next n input is the fruit names. Output format The output prints the fruit names in lexicographically sorted order. Sample testcases Input 1 Output 1 8 mango banana apple apple banana coconut grapes mango orange papaya watermelon orange grapes coconut watermelon papaya 2 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
