Yup... *In C++* Pre-Increment & Pre-Decrement return LValue Post-Increment & Post-Decrement return RValue
*In C* Pre-Increment & Pre-Decrement return RValue Post-Increment & Post-Decrement return RValue Regards, Sandeep Jain On Thu, Jul 14, 2011 at 4:08 PM, T3rminal <[email protected]> wrote: > @ all > This code is error in C as pre-increment operator in C returns rvalue but > it will work fine in C++ as it returns lvalue in C++ which is required as > LHS of assignment operator > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/algogeeks/-/ocLDsmszdZoJ. > > 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.
