O
Olaf \El Blanco\
#include <stdio.h>
// If char *frase="Andrew" I want *frase="werdnA" with THIS for...
int main()
{
int start, finish;
char aux;
char *phrase="Andrew... is listening to Dimmu Borgir...";
finish=strlen(phrase)-1;
for (start=0; start<finish; start++, finish--) {
/* Changing... */
aux= *(phrase+start);
*(phrase + start) = *(phrase + finish);
*(phrase + finish) = aux;
}
return 0;
}
// If char *frase="Andrew" I want *frase="werdnA" with THIS for...
int main()
{
int start, finish;
char aux;
char *phrase="Andrew... is listening to Dimmu Borgir...";
finish=strlen(phrase)-1;
for (start=0; start<finish; start++, finish--) {
/* Changing... */
aux= *(phrase+start);
*(phrase + start) = *(phrase + finish);
*(phrase + finish) = aux;
}
return 0;
}