Implement ONE array of the English alphabet (26 characters). a) Use a loop to cast and generate the array. b) Use a loop to output the array. c) Create a swap function for swapping character variables. d) Use a loop and the swap function to reverse all array elements. e) Use a loop to Output the updated array. Hint: Set a variable for the first and last indices. Swap those values. Gradually move the first/last pointers to the middle of the array, swapping as you go. When the middle is reached, the array will be reversed. Example Output Original: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Reversed: Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
Implement ONE array of the English alphabet (26 characters).
a) Use a loop to cast and generate the array.
b) Use a loop to output the array.
c) Create a swap function for swapping character variables.
d) Use a loop and the swap function to reverse all array elements.
e) Use a loop to Output the updated array.
Hint: Set a variable for the first and last indices. Swap those values. Gradually move the first/last pointers to the middle of the array, swapping as you go. When the middle is reached, the array will be reversed.
Example Output
Original: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Reversed: Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
its c++ do it in a easy way thankyou

Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









