@priya: compiler thinks that " a++; " statement is correct... But for that to do...' a' should be of type modifiable ... so it gives error saying that "If u want to modify , that should be lvalue, so lvalue required" ....
On Sun, Sep 4, 2011 at 2:27 AM, Yogesh Yadav <medu...@gmail.com> wrote: > @Priya: > Because a is *unmodifiable* LValue. When we are using a=a+1(a++) , this > means that we are changing the *base address* of array a[], and that can > not be possible due to Library files. > > > > > On Sun, Sep 4, 2011 at 11:49 AM, priya ramesh < > love.for.programm...@gmail.com> wrote: > >> @yogesh: Thanks a lot for the explaination. Good one indeed. Can you plz >> tell me y the compiler says lvalue required for the statement >> a++ when a is an lvalue?? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> 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 algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- **Please do not print this e-mail until urgent requirement. Go Green!! Save Papers <=> Save Trees *BharatKumar Bagana* **http://www.google.com/profiles/bagana.bharatkumar<http://www.google.com/profiles/bagana.bharatkumar> * Mobile +91 8056127652* <bagana.bharatku...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.