Write a C program to print the following characters in a reverse way
Test Characters: ‘A’, ‘B’, ‘C’
Expected Output:
The reverse of ABC is CBA
#include <stdio.h> int main() { char char1 = 'A'; char char2 = 'B'; char char3 = 'C'; printf("The reverse of %c%c%c is %c%c%c\n", char1, char2, char3, char3, char2, char1); return(0); }
Result
