1. Declare three character type arrays. 2. Use two arrays to take input from use
ID: 3615084 • Letter: 1
Question
1. Declare three character type arrays.
2. Use two arrays to take input from user.
o Take input as chartype.
o Take 10 values in eacharray.
3. Merge both these input arrays.
o If an input character isin both arrays, then it should appear once in resulted array.
4. Store result in third array.
5. Sort resulted array in ascending order.
o Ascending order meansstring values starting from ‘a’ will come first, andthen starting from ‘b’ and so on.
6. Display them after sorting
Sample Output
Enter values in first array: a h b c u v I j k e
Enter values in Second array: y u d f g k I w q a
Merged array: a y h u b d c f g v k I j w q e
Sorted Array in ascending order: a b c d e f g h I j k q uv w y