Questions tagged as 'operadores'

2
answers

Can operators ==, ===,! = e! == be considered "fuzzy logic"?

Doubt is simple and just out of curiosity, from a mathematical point of view, we have something like comparators by proportion (or from
asked by 06.03.2018 / 17:36
4
answers

What is the "spaceship operator" of PHP7?

I was checking out the New Features of PHP 7 and I came across an operator, which I had never seen in any programming language. The PHP Manual has demon- strated it from Spaceship Operator . I'll show you what I've seen below: echo...
asked by 16.09.2015 / 17:48
5
answers

What is the difference between an explicit cast and the as operator?

Always when I convert an object to a specific type, I use an explicit cast , for example: private void textBox1_Leave(object sender, EventArgs e) { TextBox textBoxTemp = (TextBox)sender; MessageBox.Show("Você digitou: " + textBoxTemp....
asked by 22.01.2015 / 19:21
3
answers

What is the difference between & & & & &?

I was doing a simple code with if of two conditions. Everything worked fine and after I read it, I realized I had written condicao & condicao2 instead of using && . Even with this " typo " the code is fully func...
asked by 16.03.2017 / 18:01
2
answers

What is the meaning of the "&" (and commercial) operator in the C language?

I'm putting together a C booklet and I'm looking for a clear way to explain this operator to the reader, and I believe that this doubt will greatly help the people who are just getting started. See an example: Code #include <stdio.h&g...
asked by 28.04.2016 / 18:53
4
answers

What is the difference between - = e = -?

In java and other languages I have seen in some projects things like: saldo -= 100 and sometimes saldo =- 100 , but I could never understand the difference between these two types, if there is any difference. After all,...
asked by 13.03.2018 / 15:51
4
answers

Behavior of the different forms of comparison in Java

If for example I have the code below, I'm comparing the object reference in the ex1 and ex2 case and not the object itself, correct? Pessoa ex1 = new Pessoa(); Pessoa ex2 = new Pessoa(); if(ex1 == ex2) { System.out.println("I...
asked by 01.10.2014 / 19:27
3
answers

Avoiding comparison "! = null" in Java

I work with Java and for countless times I have to do a test object != null on the object before accessing it to avoid NullPointerException However, I think this practice ends up making the code very ugly, dirty and hard to read....
asked by 06.02.2014 / 11:38
2
answers

What is the difference between "!=" and "" in PHP? Which one to use?

What is the difference between != and <> ? Which one should I use?     
asked by 22.01.2015 / 16:12
2
answers

Operator "| "In Java

I can not find any material on the internet explaining the utility of the "|" operator in Java. I know there is the "||" (or) used to test conditions. if(foo == 'a' || foo == 'b') But what about the "|" operator? How useful is it? My...
asked by 29.09.2014 / 20:46