Given a program to sort names in alphabetical order. The code has syntax errors in the line below. Debug the code and execute the program if (strcmp(nameli]) > 0) Input format First line contains the size of the array Next lines contain the elements of the array Output format Corresponding output. Sample testcases. Input 1 3 cat dog ant Input 2 4 one two three four Note: The program will not be evaluated if "Submit Code is not done atleast once Type here to search Header Snippet include <stdio.h> include <string. int main() { char name[1e int i, j, n Output 1 ant cat dog 7 Output 2 Fill your code here 1 VI You are using 2 four one three two
Answers
Answered by
0
Answer:
sorry don't know
Explanation:
sorry don't know
Similar questions