What does |= mean in c++
a |= b; is just syntactic sugar for a = a | b;. Same syntax is valid for almost every operator in C++. But int i |= 5; is an error, because in the definition line you must have an initialisation, that is an expression that does not use the variable being declared. is valid and will give value … Read more