Hi, just a weird syntax-related question. Why can't I do this:
where its passing a pointer to an already-incremented variable x? Seems to me it should be legal, but gcc complains about invalid lvalues. Any switches I can pass to make this code work? Cheers,Code:some_function( &(++x) );
Yoshi
EDIT: In other words, why isn't ++x an lvalue? Two lines for one thing is so ugly :-)