Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- void printReverse(char x[]);
- int main(){
- char x[50];
- gets(x);
- printReverse(x);
- printf("\n%s",x);
- return 0;
- }
- void printReverse(char x[]){
- char y[50];
- int i=0;
- int size = strlen(x)-1;
- while(i<50){
- y[i]=x[size];
- i++;
- size--;
- }
- printf("printReverse : %s",y);
- }
Add Comment
Please, Sign In to add comment