Questions tagged as 'operadores'

2
answers

What does && mean! in PHP?

I'm trying to know this, but it appears nowhere. Has a space between & e!. if ( is_home() && ! is_front_page() )     
asked by 24.06.2017 / 18:44
2
answers

How to invert series of denied conditions without affecting logic?

Could anyone explain why this happens? My apk only works right if I put denial and do something: public class Main2Activity extends AppCompatActivity { private EditText nome, teste, cpf; private Button button; @Override protect...
asked by 19.12.2016 / 00:33
3
answers

Problems with logic (&& or ||)

I found the code that is in my system strange: if (cmbCdTipoProcesso.SelectedValue != "3" && cmbCdTipoProcesso.SelectedValue != "4") {....} Apparently the code is strange because I will never have cmbCdTipoProcesso.SelectedVa...
asked by 07.01.2015 / 13:00
1
answer

What does the "" operator do in the middle of an arithmetic expression in C ++?

I found this line of code in a proposed solution to a certain problem. excedente = a % 10 + b % 10 + excedente > 9; My question is, what is the role of > 9 in this specific line?     
asked by 24.11.2018 / 21:26
4
answers

Compare number within a numeric range

I want to create a function that receives a number and check that it is within a range of 1 to 25. What is the best way to do this? private int VerificaIntervalo(int numero) { if (numero > 25) { return 0; } return 1;...
asked by 19.01.2016 / 18:50
2
answers

Operator operation new

I wanted to understand basically what logic behind the objects of the classes that use the new operator for example, I have the following program in D language: import std.stdio; class Hello { public this(){} //construtor public voi...
asked by 15.09.2017 / 06:52
1
answer

What real difference between the '=' and LIKE?

By doing another test (rs) on a database that I have in MySQL, I realized that: SELECT * From client WHERE uuid = '1kvsg4oracxq' returned the same result as: SELECT * From client WHERE uuid LIKE '1kvsg4oracxq' What exactly is the diffe...
asked by 12.06.2017 / 18:15
1
answer

Why is an expression with remainder and multiplication giving the wrong result?

Why is this code giving -2 instead of 7? #include <stdio.h> main() { printf("%i\n", 105 % 3*4 - 3*4 % (101 / 10)); system("pause"); }     
asked by 06.08.2016 / 20:22
2
answers

What do the incrementing operators do in arrays?

I was accidentally creating a PHP script and, unintentionally, put an incremental operator on a variable whose type is array . To my surprise, no error was shown by PHP. I made some tests and found that this really does not generate...
asked by 14.12.2015 / 14:35
2
answers

Is there a way to use char in an arithmetic operation in Java?

The following code does not work, but I thought of something like this: char op = '*'; ... r = (y op x); I want to change the characters of op to do different operations, is this possible in any other way?     
asked by 30.08.2015 / 20:38