Its completely compiler dependent. Actually it depends upon how the printf has been implemented. Generally its a stack based implementation which will give you
4 5 5 5 5 as output. It was interesting to see your output, have you executed it ? Which compiler ? On 10 August 2011 19:05, Pratz mary <[email protected]> wrote: > the evalution starts from right to left bt gets printed from left to right > > > On 10 August 2011 16:14, Naveen Kumar <[email protected]> wrote: > >> AFAIK evalution order of parameters in c is compiler dependent. >> >> On Wed, Aug 10, 2011 at 4:09 PM, siddharam suresh >> <[email protected]> wrote: >> > the evaluation of parameters in printf() done from right to left. >> > >> > Thank you, >> > Siddharam >> > >> > >> > On Wed, Aug 10, 2011 at 4:04 PM, Anubhav Aggarwal < >> [email protected]> >> > wrote: >> >> >> >> can anybody explain how its printing >> >> 4 5 5 4 5 >> >> >> >> -- >> >> 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. >> > >> >> >> >> -- >> Cheers >> Naveen Kumar >> >> -- >> 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. >> >> > > > -- > regards Pratima :) > > -- > 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. > -- Regards Siddharth Srivastava -- 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.
