Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void imprimeReves(const char*);
- int main(void){
- const char *s = "Hola Mundo";
- imprimeReves(s);
- return 0;
- }
- void imprimeReves(const char *pszCadena){
- int i;
- for(i=0;pszCadena[i];i++);
- while(--i>=0)
- cout<<pszCadena[i];
- cout<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement