>>556
こんな感じでどう?
変数の入れ替えの仕方はいろいろあるからググると楽しいかも
#include<stdio.h>
#include<string.h>
void str_inve(char*str){
int i,j;
char buf;
for(i=0,j=(strlen(str)-1);i<j;i++,j--){
buf = str[i];
str[i] = str[j];
str[j] = buf;
}
}
int main(void){
char str[]="This is a pen.";
str_inve(str);
printf("%s",str);
getch();
return 0;
}