tag:blogger.com,1999:blog-8612108870928357610.post6787307186882809039..comments2024-03-27T12:47:39.371+05:30Comments on Learn C Programming from Scratch: Easy-to-Follow Tutorial for Beginners: Program to Generate Permutation of String in C | C ProgramUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8612108870928357610.post-11744260786208401692018-05-07T11:23:31.169+05:302018-05-07T11:23:31.169+05:30Hi There,
This is indeed great! But I think perh...Hi There,<br /><br /><br />This is indeed great! But I think perhaps you are generally referring Program to Generate Permutation of String in C | C Program which is getting unsustainable.<br /><br />I am given an <a href="https://asha24.com/blog/c-interview-questions-and-answers/" rel="nofollow"> assignment to write code </a> on interpolation search binary search(searching an integer in an ordered list). but I don't have a clear idea about about both of them as I missed the theory class. so can anyone suggest me from where I can get satisfying information about them?<br />I am so grateful for your blog. Really looking forward to read more.<br /><br /><br />Kind Regards,<br />TinaAnonymoushttps://www.blogger.com/profile/10247644687129523815noreply@blogger.comtag:blogger.com,1999:blog-8612108870928357610.post-21425583082896484962013-10-29T12:15:39.045+05:302013-10-29T12:15:39.045+05:30chirag Agarwal's process is totally wrong.eg-w...chirag Agarwal's process is totally wrong.eg-when enter 1234!!! 1234 appears two times.Anonymoushttps://www.blogger.com/profile/04716728921775899780noreply@blogger.comtag:blogger.com,1999:blog-8612108870928357610.post-19560265412572862232012-10-20T22:41:39.789+05:302012-10-20T22:41:39.789+05:30Thanks Chirag!! We really appreciate your particip...Thanks Chirag!! We really appreciate your participation. Tanmay Jhawarhttps://www.blogger.com/profile/16070311658147185012noreply@blogger.comtag:blogger.com,1999:blog-8612108870928357610.post-84128319097669185472012-10-20T15:05:46.213+05:302012-10-20T15:05:46.213+05:30so long...try this
#include
#include
#include
#in...so long...try this <br />#include<br />#include<br />#include<br />#include<br />main()<br />{<br />char ch[10],temp;<br />int i,k=1,b,f;<br />clrscr();<br />printf("enter the string");<br />gets(ch);<br />for(i=1;i<=strlen(ch);i++)<br />{<br />k=k*i;<br />}<br />f=strlen(ch);<br /> for(i=0;i<k;i++)<br /> {<br /> b=i%(f-1);<br /> temp = ch[b+1];<br /> ch[b+1]=ch[b];<br /> ch[b]=temp;<br /> printf("%s\n",ch);<br /> }<br /> getch();<br />}<br /><br /><br />Anonymoushttps://www.blogger.com/profile/08362483089067384330noreply@blogger.com