Questions tagged as 'operadores'

3
answers

What is the difference between "decimal.Divide" and the traditional "/" in C #?

decimal a = 10/5; Returns 2 decimal b = decimal.Divide(10,5); Returns 2     
asked by 26.04.2016 / 23:45
2
answers

What is the function of the "??" operator (two questions) in PHP?

Looking at a script PHP at some point I came across this line $valor = $_GET['id'] ?? 1; What is the interpretation of this code? What does it do?     
asked by 20.09.2017 / 15:51
2
answers

How does GroupBy work in LINQ?

I'm having trouble understanding the GroupBy operator in LINQ.     
asked by 26.08.2015 / 21:23
2
answers

How does XOR work for two binaries with more than one digit?

I've learned that the XOR operator works as OR Exclusive , meaning the end result is only 1 when only one of the operators is equal to 1 . The truth table illustrates this well: Myquestionis:howdoestheXORoperatorworkwithnon-1-bitnum...
asked by 16.05.2017 / 22:46
1
answer

What is the '...' operator in Javascript?

I've seen some uses of ... but I'm not sure what it's like. Example: var a = [1, 2, 3]; var b = [4, 5, ...a]; How do you call this operator and how does it work?     
asked by 03.01.2018 / 14:30
2
answers

Is there a difference between assigning value using '-' or '=' in R?

In practical terms there seems to be no difference, but underneath the cloth as the language processes is there any difference?     
asked by 20.10.2016 / 01:17
2
answers

Is there an equivalent to AndAlso and OrElse in C #?

In VB.NET there are two interesting operators: AndAlso and OrElse . When used, the logical expression is not fully evaluated at once. See the following example: If (Not Usuario Is Nothing) And (Usuario.Idade = 18) Then ... E...
asked by 27.07.2017 / 13:52
1
answer

What does "::" mean in C ++?

I have doubts about using the colon :: , used to do class implementation, [tipo] [classe]::[método] . It is also used, for example, in std::cout . What exactly would these two double points be and what do they serve for?     
asked by 18.09.2015 / 04:19
1
answer

When should I use the "?" operator in C?

When should I use the ternary operator ? in C? #include <stdio.h> int main(void) { int valor, resultado; printf("\nValor: "); scanf("%d", &valor); resultado = valor < 10 ? 50 : 0; printf("\nResultado...
asked by 13.10.2015 / 19:20
1
answer

Can the & bitwise (and) operator of Java be used for interfaces?

Interface source code snippet Comparator . Does anyone explain to me how this Comparator<T> & Serializable is handled? public static <T, U extends Comparable<? super U>> Comparator<T> comparing( F...
asked by 08.06.2018 / 21:56