Top "Operators" questions

Does Python have a ternary conditional operator?

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?

python operators ternary-operator conditional-operator
Which equals operator (== vs ===) should be used in JavaScript comparisons?

I'm using JSLint to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals …

javascript operators equality equality-operator identity-operator
Is there a "not equal" operator in Python?

How would you say does not equal? Like if hi == hi: print "hi" elif hi (does not equal) bye: print "…

python operators
What is the result of % in Python?

What does the % in a calculation? I can't seem to work out what it does. Does it work out a …

python python-2.7 syntax operators modulo
Behaviour of increment and decrement operators in Python

I notice that a pre-increment/decrement operator can be applied on a variable (like ++count). It compiles, but it does …

python operators increment decrement
What are the basic rules and idioms for operator overloading?

Note: The answers were given in a specific order, but since many users sort answers according to votes, rather than …

c++ operators operator-overloading c++-faq
Use of "instanceof" in Java

What is the 'instanceof' operator used for? I learned that Java has the instanceof operator. Can you elaborate where it …

java operators instanceof
What is the "-->" operator in C++?

After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that …

c++ c operators code-formatting standards-compliance
What are bitwise shift (bit-shift) operators and how do they work?

I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (…

language-agnostic bit-manipulation operators bit-shift binary-operators
Reference — What does this symbol mean in PHP?

What is this? This is a collection of questions that come up every now and then about syntax in PHP. …

php arguments logic operators symbols