the value of d expression i++ is a integer constant.....so u cant assign to a value 20 to it
same is d case if u execute (i++)++; On 8/30/11, rahul vatsa <[email protected]> wrote: > @nidhi, if u change the i++ to ++i in D, it will compile, bt off course it > will keep on printing 20 in an infinite loop. > > i just tried it, nd it compiles. > > invalid lvalue in assignment will be when it is i++. > > > On Tue, Aug 30, 2011 at 1:06 PM, nidhi jain > <[email protected]>wrote: > >> >> >> @rahul: it is still giving an error (invalid lvalue in assignment). >> >> -- >> 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.
