1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <stdio.h> char char1; /* first character */ char char2; /* second character */ char char3; /* third character */ main() { char1 = 'A'; char2 = 'B'; char3 = 'C'; (void)printf("%c%c%c reversed is %c%c%c\n", char1, char2, char3, char3, char2, char1); return (0); }