Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C - <b>= assignment operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
=                        Assignment operator

 lvalue = exp            Assignment
 lvalue                  any variable
 exp                     any expression whose type is compatible with lvalue

    The assignment operator `=' evaluates exp and assigns the resulting
    value to lvalue.

    The expression "lvalue = exp" itself yields a value equivalent to exp
    after the assignment to lvalue is made, which allows multiple
    assignments such as `a = b = 2'.

       Note:    A common error is to use = instead of == in a comparison
                test, such as "if (a = b) ...".

See Also: op= ==

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson