๐Ÿ’ปap computer science a review

Compound Assignment Operator

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

A compound assignment operator is a shorthand way to combine an arithmetic operation with the assignment operation. It performs the specified arithmetic operation on the value of the variable and assigns the result back to the same variable.

"Compound Assignment Operator" also found in: