Can u explain me plz........ On Wed, Jul 27, 2011 at 11:24 PM, Muthu Raj <[email protected]> wrote:
> I am getting the proper output :) 1 0 1 0 1 1 0 1 > > > > > *Muthuraj R. > 4TH Year BE.** > Information Science Dept* > *PESIT, Bengaluru . > * > > > > > On Wed, Jul 27, 2011 at 11:19 PM, Vijay Khandar > <[email protected]>wrote: > >> #include<stdio.h> >> #include<conio.h> >> int f(int n) >> { >> if(n<=1) >> { >> printf(" %d",n); >> } >> else >> { >> f(n/2); >> printf(" %d",n%2); >> } >> } >> >> void main() >> { >> clrscr(); >> f(173); >> getch(); >> } >> >> o/p-1 0 1 0 1 1 0 1 >> but i m getting 1 0 1 1 0 1 0 1 >> >> plz explain me........... >> >> -- >> 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. >> >> > -- > 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. > -- 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.
