Top "Operators" questions

Modulo operator in Python

What does modulo in the following piece of code do? from math import * 3.14 % 2 * pi How do we calculate modulo on …

python python-3.x operators
Creating a "logical exclusive or" operator in Java

Observations: Java has a logical AND operator. Java has a logical OR operator. Java has a logical NOT operator. Problem: …

java operators xor
What does the question mark and the colon (?: ternary operator) mean in objective-c?

What does this line of code mean? label.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect; The ? and : confuse me.

objective-c c syntax operators conditional-operator
How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?

What is the difference between == and === in PHP? What would be some useful examples? Additionally, how are these operators used …

javascript php operators
What is a Question Mark "?" and Colon ":" Operator Used for?

Two questions about using a question mark "?" and colon ":" operator within the parentheses of a print function: What do they …

java operators ternary-operator conditional-operator
Logical XOR operator in C++?

Is there such a thing? It is the first time I encountered a practical need for it, but I don't …

c++ operators logical-operators
Regex how to match an optional character

I have a regex that I thought was working correctly until now. I need to match on an optional character. …

regex string operators
Why don't Java's +=, -=, *=, /= compound assignment operators require casting?

Until today, I thought that for example: i += j; Was just a shortcut for: i = i + j; But if we …

java casting operators variable-assignment assignment-operator
How can I calculate divide and modulo for integers in C#?

How can I calculate division and modulo for integer numbers in C#?

c# math operators division modulo
Why are there no ++ and --​ operators in Python?

Why are there no ++ and -- operators in Python?

python operators