array shud be char * nt just char.here ur declaring a char variable yes array is a const pointer
On Sat, Sep 3, 2011 at 6:25 PM, priya ramesh <[email protected] > wrote: > main(){ > char arr="algogeeks\0"; > arr++; > } > > y does the compiler complain l value required in line 3.?? > arr is a pointer holding address. This address is an lvalue. Why is it > complaining?? > > -- > 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.
