Programa:         Unidad4Ejercicio09.cpp

Descripción:      Lee una cadena y la muestra al revés.


#include <iostream>

#include <conio>

#include <stdlib>

#include <ctype>

using namespace std;

void muestraAlReves(char *c);

void main()


      char nombre[20];

      cout << "Introduzca una cadena ";

      cin >> nombre;





void muestraAlReves(char *c)


      int i;

      for(i = strlen(c) - 1; i >= 0; i--)

            cout << c[i];


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.