lkml.org 
[lkml]   [1999]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:51    [W:0.018 / U:90.368 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site