/* Apologies for using C, but its my "mother-tongue" :P */ #include int main(int argc, char **argv) { int ; for(i = (strlen(argv[1]) - 1); i >= 0; i--){ printf("%c", *(argv[1] + i)); /* reverse a string, a number, a sentence, a novel... */ } }