Messages in this thread | | | Date | Wed, 31 Mar 1999 15:10:44 -0500 (EST) | From | "J. S. Connell" <> | Subject | [OFFTOPIC] Re: A bit off-topic ... (fwd) |
| |
First, let me say that this message is VASTLY offtopic for the linux-kernel mailing list. This mailing list is for discussion of the Linux kernel's internals - NOT about basic C programming.
On Wed, 31 Mar 1999, Rivalino Matias Junior wrote: > The result of x is two. Why ?
My C compiler won't compile that - it claims you're assigning to an invalid lvalue. I suspect there's a compiler bug to do with assignments in a ternary operator as the rvalue of an assignment. Wrapping the two x='s on the right-hand side generates the expected output.
--Jeff
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |