Mega Code Archive
Categories
/
C
/
Code Snippets
Print the string forward and backwards
#include
#include
char *j = "I Love Clementine"; int main(void) { register int t; printf(j); for( t = strlen( j ) - 1; t > -1; t--) printf("%c", j[ t ]); return 0; }