for (int i=0;i<n-r+1;i++)
printf("%c%c%c ", a[i],a[i+1],a[i+2]);Best Regards Ashish Goel "Think positive and find fuel in failure" +919985813081 +919966006652 On Wed, Jul 14, 2010 at 6:23 PM, ankit mahendru <[email protected]>wrote: > Write the code to print combinations of a given array (n& r were given) e.g > for abcde .r=3 ...print " abc", "bcd' "cde" etc > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
