Questions tagged as 'operadores'

4
answers

Sign of different Query

I have a problem submitting Query. I have the alvaraValidade field that only receives Date fields. When I do not put anything in this field, the date field is saved as 0000-00-00 . $sql = "Select * From tb_trabalhador wh...
asked by 25.02.2014 / 13:38
2
answers

What is the C / C ++ volatile operator?

I've seen some code in C / C ++ statements like this: volatile int i = 0; I would like to know what the volatile operator is and in what cases I should use it.     
asked by 22.03.2014 / 15:16
1
answer

How to use the %% operator in R

What does the %<>% operator in R mean? What's your difference from <- ? Under what circumstances can it be useful?
asked by 12.06.2016 / 11:48
1
answer

Is it worth using binary operators to gain performance?

I have the following situations: if (1 & 1){} and if (1 == 1){} According to what I've learned, working with bitwise operators causes a much better performance in the program, so I've had some doubts: Is performance in the f...
asked by 03.01.2018 / 22:04
1
answer

How do you evaluate expressions in Java?

Reading some references was possible understand the basics, but not enough to decipher the following code: public class Expression { public static void main(String[] args) { int s = 5; s += s + mx(s) + ++s + s; }...
asked by 29.03.2017 / 02:51
4
answers

NOT operator in python

In java we have the not operator, we can use it like this: if (!metodo()) { //código } I'm just getting to know python now, and I have a little problem: I have a function that adds names to a list: def adiciona_perfis(): quanti...
asked by 24.10.2016 / 21:44
2
answers

What is the name of the operator ... used in PHP 5.6?

From PHP 5.6 we now have the possibility to invoke or declare a function, stating that the arguments are infinite, using the ... operator. Example: function add(... $arguments) { return array_sum($arguments); } add(1, 2,...
asked by 16.09.2015 / 17:55
2
answers

Is there a performance benefit on replacing the "==" operator with the "===" operator?

I'm using JSLint to check if the JavaScript source code complies with the encoding rules, and it is returning many suggestions for replacing == (two equal signs) with === (three equal signs) when doing things like comparing id...
asked by 09.04.2018 / 02:38
2
answers

Ternary Operator, is_array, unexpected

See only .. Follow the instruction $var = 123; echo "valor de var: " . is_array($var) ? implode("-",$var) : $var; Ai gives the following error: implode(): Invalid arguments passed . I expected that the implode function would not b...
asked by 10.09.2015 / 04:56
2
answers

Difference between ":" and "." in methods of a Lua table

I came across two different statements that left me confused. obj = {} function obj.Create(name) end function obj:GoGoGo(name) end What is the difference of the function declared with the . (dot) and : (colon)?     
asked by 08.12.2015 / 18:46