Final answer:
When one operand is signed and the other is unsigned, C follows certain promotion rules to perform the operation.
Step-by-step explanation:
When an operation is performed where one operand is signed and the other is unsigned, C, the programming language, follows certain rules:
- If the unsigned operand is larger, it will promote the signed operand to an unsigned value and perform the operation.
- If the signed operand is larger, it will sign extend the unsigned value to a signed value and perform the operation.
For example, if you have an operation like signed_value + unsigned_value, the signed value will be promoted to an unsigned value and the addition will be performed.