Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: [CODE] #include<stdio.h> void swap(char*,int); void gotoloop(char*,int); int len; main() { extern int len; char ch[20]; int i,j,k,l=0,c; printf("Enter the string\n"); while((c=getchar())!=EOF){ch[l]=c;l++;} l--; ch[l]='\0'; len=l; gotoloop(ch,l); printf("\n"); //return; } void gotoloop(char *ch,int l) { int i,k,j,z; extern int len; k=l; if(l<=1) return; for(i=0;i<k;i++) { swap(ch,k); l--; gotoloop(ch,l); l++; for (j=2;j<=len;j++) { … |
The End.