Diferencia entre revisiones de «xor»

De ArduWiki
Saltar a: navegación, buscar
(Vea también)
(Vea también)
Línea 30: Línea 30:
  
 
== Vea también ==
 
== Vea también ==
* [[not]] <nowiki>!</nowiki>
+
* [[not]] <nowiki>(!)</nowiki>
* [[and]] <nowiki>&&</nowiki>
+
* [[and]] <nowiki>(&&)</nowiki>
* [[or]]  <nowiki>||</nowiki>
+
* [[or]]  <nowiki>(||)</nowiki>
* [[not bit a bit]] <nowiki>~</nowiki>
+
* [[not bit a bit]] <nowiki>(~)</nowiki>
* [[and bit a bit]] <nowiki>&</nowiki>
+
* [[and bit a bit]] <nowiki>(&)</nowiki>
* [[or bit a bit]] <nowiki>|</nowiki>
+
* [[or bit a bit]] <nowiki>(|)</nowiki>
* [[xor bit a bit]] <nowiki>^</nowiki>
+
* [[xor bit a bit]] <nowiki>(^)</nowiki>
  
 
== Referencias ==
 
== Referencias ==

Revisión del 08:54 23 jul 2018

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

Referencias