I need to change this program into pointer arithmetic
I started doing it and I just want to make sure that I have not left out someting!!!!!!
#include <stdio.h>
int main(void)
{
char t[20];
char buf[20];
char *pt;
int k;
for(;
{
gets(t);
if (feof(stdin))break;
sscanf(t,"%s", &buf);
pt=t;
while(strlen(pt)-1; k>=0; k--)
{
printf("%c", *pt[k]);
}
printf("\n");
}
return 0;
}