TheDocumentation Index
Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
Use this file to discover all available pages before exploring further.
-- (decrement) operator is a unary arithmetic operator that decreases the value of its operand by one. It requires a modifiable lvalue of a scalar type (integer, floating-point, or pointer) as its operand.
The operator exists in two forms, which differ strictly in their value computation relative to the side effect of modifying the operand.
Prefix Decrement (--x)
In the prefix form, the operator is placed before the operand.
- Side effect: The value of the operand is decremented by 1.
- Value computation: The expression evaluates to the new, decremented value of the operand.
Postfix Decrement (x--)
In the postfix form, the operator is placed after the operand.
- Side effect: The value of the operand is decremented by 1.
- Value computation: The expression evaluates to the original, un-decremented value of the operand.
Technical Constraints and Behavior
Pointer Arithmetic When applied to a pointer, the-- operator does not simply subtract one byte from the memory address. Instead, it decrements the address by the size of the pointed-to type (sizeof(type)).
Master C with Deep Grasping Methodology!Learn More





