tagged [operators]

When must we use checked operator in C#?

When must we use checked operator in C#? When must we use `checked` operator in C#? Is it only suitable for exception handling?

22 Aug at 08:33

What does ||= (or-equals) mean in Ruby?

What does ||= (or-equals) mean in Ruby? What does the following code mean in Ruby? Does it have any meaning or reason for the syntax?

9 Sep at 22:21

Static implicit operator

Static implicit operator I recently found this code: What does `static implicit operator` mean?

23 Dec at 16:31

How can I calculate divide and modulo for integers in C#?

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

16 May at 19:27

What does mean "?" after variable in C#?

What does mean "?" after variable in C#? What does this condition mean? P.S. - `helper``class`- `Settings`- `HasConfig`

13 Feb at 13:6

C# lambda expression reverse direction <=

C# lambda expression reverse direction

16 Feb at 18:41

Conditional XOR?

Conditional XOR? How come C# doesn't have a conditional `XOR` operator? Example:

12 Aug at 09:23

Difference between == and === in JavaScript

Difference between == and === in JavaScript What is the difference between `==` and `===` in JavaScript? I have also seen `!=` and `!==` operators. Are there more such operators?

practical applications of bitwise operations

practical applications of bitwise operations 1. What have you used bitwise operations for? 2. why are they so handy? 3. can someone please recommend a VERY simple tutorial?

7 Oct at 15:44

why -3==~2 in C#

why -3==~2 in C# Unable to understand. Why output is "equal"

What does the question mark character ('?') mean in C++?

What does the question mark character ('?') mean in C++? In the above snippet, what does "?" mean? What can we replace it with?

12 Sep at 16:52

Question mark and colon in JavaScript

Question mark and colon in JavaScript I came across the following line What do the `?` and `:` mean in this context?

Equivalent of Java triple shift operator (>>>) in C#?

Equivalent of Java triple shift operator (>>>) in C#? What is the equivalent (in C#) of Java's `>>>` operator? (Just to clarify, I'm not referring to the `>>` and `

19 Apr at 22:19

What exactly does += do?

What exactly does += do? I need to know what `+=` does in Python. It's that simple. I also would appreciate links to definitions of other shorthand tools in Python.

22 Mar at 14:27

R: += (plus equals) and ++ (plus plus) equivalent from c++/c#/java, etc.?

R: += (plus equals) and ++ (plus plus) equivalent from c++/c#/java, etc.? Does R have a concept of `+=` (plus equals) or `++` (plus plus) as c++/c#/others do?

Modulo operator in Python

Modulo operator in Python What does modulo in the following piece of code do? How do we calculate modulo on a floating point number?

23 Mar at 16:5

How to search for language syntax in Google?

How to search for language syntax in Google? My current question is what does the

8 Feb at 13:59

Behaviour of increment and decrement operators in Python

Behaviour of increment and decrement operators in Python How do I use pre-increment/decrement operators (`++`, `--`), just like in C++? Why does `++count` run, but not change the value of the variable...

17 Apr at 02:11

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

What does the question mark and the colon (?: ternary operator) mean in objective-c? What does this line of code mean? The `?` and `:` confuse me.

Is the ^ operator really the XOR operator in C#?

Is the ^ operator really the XOR operator in C#? I read that the `^` operator is the logical XOR operator in C#, but I also thought it was the "power of" operator. What is the explanation?

18 Mar at 21:0

What is the instanceof operator in JavaScript?

What is the instanceof operator in JavaScript? The `instanceof` keyword in JavaScript can be quite confusing when it is first encountered, as people tend to think that JavaScript is not an object-orie...

10 Apr at 20:46

Python's 'in' operator equivalent to C#

Python's 'in' operator equivalent to C# With Python, I can use 'in' operator for set operation as follows : What's the equivalent in C#?

16 Feb at 03:27

What operator is <> in VBA

What operator is in VBA I was studying some [vba](/questions/tagged/vba) code and came across this: I can't figure out what operator this is, any help would be appreciated.

2 Apr at 18:17

Is there a C# case insensitive equals operator?

Is there a C# case insensitive equals operator? I know that the following is case sensitive: So is there an operator which will compare two strings in an insensitive manner?

What needs to be overridden in a struct to ensure equality operates properly?

What needs to be overridden in a struct to ensure equality operates properly? As the title says: do I need to override the `==` operator? how about the `.Equals()` method? Anything I'm missing?