I was analyzing some possibilities for the implementation of an algorithm and I went to search for this type of &
and |
, and I read some topics in English but it was not 100% clear to me what it is and where I can use it, it. Then I would like an explanation, clearer and with practical examples of how to use it. (And in my native language, in the case: Portuguese ).
Questions
- What is the difference between the
&
and&&
operators? - What is the
&
? - An example usage for the
&
operator? - What is the difference between the
|
and||
operators? - What is the
|
? - An example usage for the
|
operator?