Skip to content

Instantly share code, notes, and snippets.

@ThePratikSah
Created July 25, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThePratikSah/e7c7cc331b9c37c033a4010de21cdada to your computer and use it in GitHub Desktop.
Save ThePratikSah/e7c7cc331b9c37c033a4010de21cdada to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
int main(){
char str[10] = "Hello";
int i, length = strlen(str);
printf("Reverse of string Hello is ");
for(i = length - 1 ; i >= 0 ; i--){
printf("%c", str[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment