Thomas Darimont
Erfahrenes Mitglied
Hallo!
Mal ne nette Anwendung für Rekursion![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Gruß Tom
Mal ne nette Anwendung für Rekursion
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Code:
#include "stdafx.h"
#include <iostream.h>
void printReverse(char * str){
if(*str){
printReverse(str+1);
::cout << *str;
}
}
int main(int argc, char* argv[])
{
char* c = "hallo!";
printReverse(c);
return 0;
}
Gruß Tom