Inverser une chaîne de caractère

Author:


{filelink=13692}


#include 
#include 

void inverser(char *chaine)
{
  int i;

  for(i = strlen(chaine) - 1; i >= 0; i--)
      putchar( chaine [ i ] );
}

int main(void)
{
  inverser("J'aime ça");

  return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *