Topic : C-Language Documentation Author : John Kormylo Version : C.HYP 1.0 Subject : Documentation/C-Language Nodes : 233 Index Size : 6362 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ Assignment Operators ] ... do two things: First, they change the Lvalue. Second, they return this changed Lvalue for further operations (if any). for example; a = b = 0; or if((err = funct()) != 0) = Set Lvalue equal to Rvalue. Perform type conversion if necessary. Note: one can copy an entire structure (but not an array) using '='. *= Compute (Lvalue * Rvalue) and replace Lvalue. /= Compute (Lvalue / Rvalue) and replace Lvalue. %= Compute (Lvalue % Rvalue) and replace Lvalue. += Compute (Lvalue + Rvalue) and replace Lvalue. -= Compute (Lvalue - Rvalue) and replace Lvalue. &= Compute (Lvalue & Rvalue) and replace Lvalue. |= Compute (Lvalue | Rvalue) and replace Lvalue. ^= Compute (Lvalue ^ Rvalue) and replace Lvalue. <<= Compute (Lvalue << Rvalue) and replace Lvalue. >>= Compute (Lvalue >> Rvalue) and replace Lvalue. See also Unary Operators ++ and --