|
|
1.1 ! root 1: ! 2: ! 3: operator Definition operator ! 4: ! 5: ! 6: ! 7: ! 8: An operator relates one operand to another. For example, the ! 9: statement ! 10: ! 11: ! 12: 1+2 ! 13: ! 14: ! 15: relates the operands 11 and 22 through the operation of addition; ! 16: on the other hand, the statement ! 17: ! 18: ! 19: A>B ! 20: ! 21: ! 22: relates the operands AA and BB logically, by asserting that the ! 23: former is greater than the latter; whereas ! 24: ! 25: ! 26: A=B ! 27: ! 28: ! 29: relates the operands AA and BB by assigning the value of the latter ! 30: to the former. The following is a table of the C operators: ! 31: ! 32: ! 33: * Multiplication ! 34: / Division ! 35: % Remainder ! 36: + Addition ! 37: - Subtraction ! 38: ! 39: ! 40: ! 41: < Less than ! 42: <= Less than or equal to ! 43: > Greater than ! 44: >= Greater than or equal to ! 45: ! 46: ! 47: ! 48: && Logical AND ! 49: != Inequality ! 50: ! Logical negation ! 51: | | logical OR ! 52: ! 53: ! 54: ! 55: & Bitwise AND ! 56: ^ Bitwise exclusive OR ! 57: ~ Bitwise complement ! 58: | Bitwise inclusive OR ! 59: << Bitwise shift left ! 60: >> Bitwise shift right ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66: ! 67: ! 68: ! 69: operator Definition operator ! 70: ! 71: ! 72: ! 73: ! 74: ! 75: = Assign ! 76: += Increment and assign ! 77: -= Decrement and assign ! 78: *= Multiply and assign ! 79: /= Divide and assign ! 80: %= Modulus and assign ! 81: ++ Increment ! 82: -- Decrement ! 83: == Equivalence ! 84: &= Bitwise AND and assign ! 85: ^= Bitwise exclusive OR and assign ! 86: |= Bitwise inclusive OR and assign ! 87: <<= Bitwise shift left and assign ! 88: >>= Bitwise shift right and assign ! 89: ! 90: ! 91: ! 92: * Indirection ! 93: & Render an address ! 94: () Function indicator ! 95: [] Array indicator ! 96: -> Structure pointer ! 97: . Structure member ! 98: ? : Conditional expression ! 99: ! 100: ! 101: ! 102: ssiizzeeooff size of an object ! 103: ! 104: ! 105: For a table of the precedence of operators, see the entry for ! 106: pprreecceeddeennccee. ! 107: ! 108: ***** See Also ***** ! 109: ! 110: definitions, precedence, sizeof ! 111: ! 112: ! 113: ! 114: ! 115: ! 116: ! 117: ! 118: ! 119: ! 120: ! 121: ! 122: ! 123: ! 124: ! 125: ! 126: ! 127: ! 128: ! 129: ! 130: COHERENT Lexicon Page 2 ! 131: ! 132:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.