Created
July 25, 2017 19:27
-
-
Save ThePratikSah/e7c7cc331b9c37c033a4010de21cdada to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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