On 3/15/06, Per Jessen <per@xxxxxxxxxxxx> wrote: > Steve Graegert wrote: > > > > The unary plus operator returns the value of an expression. Neither > > the unary plus nor unary minus operators produce lvalues and is of > > limited use. > > So what might be the intention of someone using it like the OP > described? It doesn't make much sense, right? I suppose it's there for a clean implementation of operators in C. While the unary minus returns the negative of the operand the unary plus returns the value to avoid ambiguity, i.e. shall the unary plus return the positive of a negative operand, as the unary minus does? IMHO, not a result I'd expect. \Steve - : send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html