Skip to content

Instantly share code, notes, and snippets.

@rajeevs1992
Created January 22, 2013 14:30
Show Gist options
  • Save rajeevs1992/4595049 to your computer and use it in GitHub Desktop.
Save rajeevs1992/4595049 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<string.h>
main()
{
char string[10],i,*fp=fopen("file","r");
while(fscanf(fp,"%s",string)!=EOF && printf(" "))
for(i=strlen(string);i>=0;printf("%c",string[i--]));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment