(C++) operator%=
February 24, 2017 · View on GitHub
(C++) operator%=
operator%= is the operator to perform a modulus operation to a variable and assign the result to it.
#include <cassert> int main() { int x = 5; x%=3; assert(x == 2); }