Diferencia entre revisiones de «xor»

De ArduWiki
Saltar a: navegación, buscar
(Vea también)
(Vea también)
Línea 31: Línea 31:
 
== Vea también ==
 
== Vea también ==
 
<categorytree mode=all>Operador logico</categorytree>
 
<categorytree mode=all>Operador logico</categorytree>
* [[not]] <nowiki>(!)</nowiki>
 
* [[and]] <nowiki>(&&)</nowiki>
 
* [[or]]  <nowiki>(||)</nowiki>
 
* [[not bit a bit]] <nowiki>(~)</nowiki>
 
* [[and bit a bit]] <nowiki>(&)</nowiki>
 
* [[or bit a bit]] <nowiki>(|)</nowiki>
 
* [[xor bit a bit]] <nowiki>(^)</nowiki>
 
* [[bitshift right]] <nowiki>(>>)</nowiki>
 
* [[bitshift left]] <nowiki>(<<)</nowiki>
 
  
 
== Referencias ==
 
== Referencias ==

Revisión del 19:29 14 jun 2019

Descripción

Es un operador boleano xor ^ que permite unir dos expresiones lógicamente.

a b a ^ b
0 0 0
1 0 1
0 1 1
1 1 0

Sintaxis

espresion 1 ^ expresion 2

Retorna

Verdadero o falso.

Advertencias

  • No confundir el operador boleano xor ^, con el operador xor bit a bit |.

Ejemplo


Vea también

  and
  not
  or
  xor


Referencias