#include <iostream.h>
#include <string.h>
#include <conio.h>
void balik(char *s)
{ int i;
for (i=strlen(s)-1; i>=0; i--)
cout << s[i];
}
main(){
char *kata = "Algoritma";
balik(kata);
getch();
return 0;
}
Hasil: