{"id":1727,"date":"2021-07-16T14:08:06","date_gmt":"2021-07-16T08:38:06","guid":{"rendered":"https:\/\/selfimagination.in\/tips\/?p=1727"},"modified":"2021-11-08T13:06:02","modified_gmt":"2021-11-08T07:36:02","slug":"arduino-operators","status":"publish","type":"post","link":"https:\/\/selfimagination.in\/tips\/arduino-operators\/","title":{"rendered":"Arduino Operators"},"content":{"rendered":"\n<p>\u0907\u0938 Article \u092e\u0947 \u0906\u092a\u0915\u094b Arduino Operators \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947 \u092c\u0924\u093e\u092f\u093e \u0917\u092f\u093e \u0939\u0948\u0902 , \u091c\u092c \u092d\u0940 \u0939\u092e\u0947 \u0915\u093f\u0938\u0940 \u092d\u0940 \u092a\u094d\u0930\u0915\u093e\u0930 \u0915\u093e Calculattion \u0914\u0930 Comparison \u0915\u0930\u0928\u093e \u0939\u094b \u0924\u092c \u0939\u092e\u0947 Operator \u0915\u0940 \u091c\u0930\u0942\u0930\u0924 \u0932\u0917\u0924\u0940 \u0939\u0948\u0902 \u0964 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino <strong>Arithmetic Operators<\/strong><\/h2>\n\n\n\n<p>\u091c\u092c \u092d\u0940 \u0939\u092e\u0947 \u0915\u094b\u0908 Arithmetic Caluclation \u0915\u0930\u0928\u093e \u0939\u094b \u091c\u0948\u0938\u0947 \u0915\u0940 Addition Substraction \u0924\u094b \u0939\u092e Arduino Arithmetic Operators \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948 \u0964 <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>(+) Addition :<\/strong> \u091c\u094b\u0921\u093c\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(-) &nbsp;Subtraction : <\/strong>\u0918\u091f\u093e\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(*) &nbsp;Multiplication :<\/strong> \u0917\u0941\u0923\u093e \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(\/) Division :<\/strong> \u092d\u093e\u0917 \u0926\u0947\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(%) &nbsp;Remainder :<\/strong> \u0936\u0947\u0937 \u0928\u093f\u0915\u0932\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\n int Add, Sub, Mul, Div, Rem;\n int a = 10;\n int b = 3;\n\n Add = a + b;  \/\/ 13\n Sub = a - b;  \/\/ 7\n Mul = a * b;  \/\/ 30\n Div = a \/ b;  \/\/ 3\n Rem = a % b;  \/\/ 1\n\n Serial.begin(9600);  \/\/For Output on\n\n Serial.println(\"\");  \/\/Blank Line\n  \n Serial.print(\"Addition = \");\n Serial.println(Add);\n \n Serial.print(\"Subtraction = \");\n Serial.println(Sub);\n\n Serial.print(\"Multiplication = \");\n Serial.println(Mul);\n\n Serial.print(\"Division = \");\n Serial.println(Div);\n\n Serial.print(\"Remainder = \");\n Serial.println(Rem);\n \n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino <strong>Comparison Operator<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u0915\u093f\u0938\u0940 \u092d\u0940 \u092a\u094d\u0930\u0915\u093e\u0930 \u0915\u0940 \u0915\u0902\u0921\u0940\u0936\u0928 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f Arduino Comarision Operators \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948\u0902 \u0964 <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>(<strong>==) Equal to :<\/strong> \u092c\u0930\u093e\u092c\u0930 \u0935\u0948\u0932\u094d\u092f\u0942 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(!=) Not Equal to :<\/strong> \u092c\u0930\u093e\u092c\u0930 \u0928\u0939\u0940\u0902 \u0939\u094b\u0928\u0947 \u092a\u0930 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(&lt;) Less Than :<\/strong> \u0938\u0947 \u0915\u092e \u0935\u0948\u0932\u094d\u092f\u0942 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(&lt;=) Less Than or Equal to :<\/strong> \u0915\u092e \u0914\u0930 \u092c\u0930\u093e\u092c\u0930 \u0935\u0948\u0932\u094d\u092f\u0942 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(&gt;) Greater Than :<\/strong> \u0938\u0947 \u092c\u0921\u093c\u0940 \u0935\u0948\u0932\u094d\u092f\u0942 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(&gt;=) Greater Than or Equal to :<\/strong> \u0938\u0947 \u092c\u0921\u093c\u0940 \u0914\u0930 \u092c\u0930\u093e\u092c\u0930 \u0935\u0948\u0932\u094d\u092f\u0942 \u091a\u0947\u0915 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\n  int x = 10;\n  int y = 3;\n\n  Serial.begin(9600);\n  Serial.println(\"\");\n\n  if (x == y) { \n    Serial.println(\" x == y \"); \/\/ compare 10 == 3 is false \n   }\n   if (x != y) { \n    Serial.println(\" x != y \"); \/\/ compare 10 != 3 is true  \n   }\n   if (x &lt; y)  { \n    Serial.println(\" x &lt; y \");  \/\/ compare 10 &lt; 3 is false  \n   }\n   if (x &lt;= y) { \n    Serial.println(\" x &lt;= y \"); \/\/ compare 10 &lt;= 3 is false \n   }\n   if (x &gt; y)  { \n    Serial.println(\" x &gt; y \");  \/\/ compare 10 &gt; 3 is true   \n   }\n  if (x &gt;= y) { \n    Serial.println(\" x &gt;= y \"); \/\/ compare 10 &gt;= 3 is true  \n  }\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><a href=\"https:\/\/youtu.be\/8ZYmYoWKSTg\" target=\"_blank\" rel=\"noopener\">\u0935\u093f\u0921\u093f\u0913 \u0915\u0947 \u092e\u093e\u0927\u094d\u092f\u092e \u0938\u0947 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u092f\u0902\u0939\u093e \u092a\u0930 \u0915\u094d\u0932\u093f\u0915 \u0915\u0930\u0947 <\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Boolean Operator (Arduino Logical Operators) <\/h2>\n\n\n\n<p>\u091c\u092c \u092d\u0940 \u0939\u092e\u0947 \u0915\u094b\u0908 \u092d\u0940 Logical Condition Check \u0915\u0930\u0928\u093e \u0939\u094b \u0924\u092c \u0939\u092e <strong>Arduino Boolean Opertors<\/strong> \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948 \u0964 <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>(!) Logical Not : <\/strong>Value True \u0939\u094b\u0917\u0940 \u0924\u094b False \u0914\u0930 False \u0939\u094b\u0917\u0940 \u0924\u094b True Return \u0915\u0930\u0924\u093e \u0939\u0948\u0902 \u0964<\/li><li><strong>(&amp;&amp;) Logical And :<\/strong> \u0926\u094b\u0928\u094b\u0902 \u0938\u093e\u0907\u0921 \u0915\u0940 \u0935\u0948\u0932\u094d\u092f\u0942 True \u0939\u094b\u0928\u0947 \u092a\u0930 \u0939\u0940 True Return \u0915\u0930\u0924\u093e \u0939\u0948\u0902 \u0964<\/li><li><strong>(||) Logical Or :<\/strong> \u0926\u094b\u0928\u094b\u0902 \u092e\u0947\u0902 \u0938\u0947 \u090f\u0915 \u0938\u093e\u0907\u0921 \u092d\u0940 True \u0935\u0948\u0932\u094d\u092f\u0942 \u0939\u094b\u0928\u0947 \u092a\u0930 \u092d\u0940 True Return \u0915\u0930\u0924\u093e \u0939\u0948\u0902 \u0964<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\n int x = LOW;\n int y = HIGH;\n\n Serial.begin(9600);\n\n if (x != HIGH ) { \n  Serial.println(\" When X is low  \");  \n }\n\n if (x == HIGH &amp;&amp; y == HIGH) {  \n  Serial.println(\" When both are High  \");  \n } \n\n if (x == HIGH || y == HIGH) {  \n  Serial.println(\" When Any One is High  \");  \n }\n\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Pointer Access Operator<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>(&amp;) Reference : <\/strong>\u091c\u092c \u0939\u092e\u0947\u0902 Direct Variable \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0928 \u0915\u0930\u0924\u0947 \u0939\u0941\u090f Indirect \u0915\u093f\u0938\u0940 \u0935\u0947\u0930\u093f\u090f\u092c\u0932 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0928\u093e \u0939\u094b\u0924\u093e \u0939\u0948\u0902 \u0924\u094b \u0939\u092e \u0909\u0938\u0915\u0947 address \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u092f\u0939\u093e\u0901 \u092a\u0930 \u0939\u092e \u0935\u0948\u0932\u094d\u092f\u0942 Pass \u0915\u0930\u0928\u0947 \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 \u0909\u0938\u0915\u0947 Address \u092f\u093e\u0928\u093f \u0915\u0940 Reference \u0915\u094b \u092a\u093e\u0938 \u0915\u0930\u0947\u0902\u0917\u0947 \u0964<\/li><li><strong>(*) Difference : <\/strong>\u091c\u092c \u0939\u092e Reference \u0938\u0947 \u0935\u0948\u0932\u094d\u092f\u0942 Pass \u0915\u0930 \u0926\u0947\u0924\u0947 \u0939\u0948\u0902 \u0924\u092c \u0909\u0938 \u0935\u0948\u0932\u094d\u092f\u0942 \u0915\u094b Get \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0939\u092e Pointer Difference * \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u0964<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\n Serial.begin(9600);\n int *px;         \/\/ declare a pointer to an int data type\n int x = 5;\n int value = 0;\n px    = &amp;x;     \/\/ contains the address of 'x'\n value = *px;     \/\/ gets the value at the address pointed by 'px'\n\n Serial.print(\" Gets the value at the address pointed by 'px' \"); \n Serial.println(value); \n}\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0939\u092e\u093e\u0930\u0947 \u0905\u0928\u094d\u092f \u0906\u0930\u094d\u091f\u093f\u0915\u0932<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/selfimagination.in\/tips\/learn-c-basic-n-advance\/\">Learn C \u2013 \u0939\u093f\u0902\u0926\u0940 \u092e\u0947\u0902<\/a><\/li><li><a href=\"https:\/\/selfimagination.in\/tips\/mysql-aggregate-function-in-hindi\/\">MySQL Aggregate Function in Hindi<\/a><\/li><li><a href=\"https:\/\/selfimagination.in\/tips\/mysql-sys-exec-example-with-trigger\/\">MySQL SYS_EXEC Example With Trigger<\/a><\/li><li><a href=\"https:\/\/selfimagination.in\/tips\/get-post-method\/\">GET &amp; POST Method | Difference Between GET &amp; POST<\/a><\/li><li><a href=\"https:\/\/selfimagination.in\/tips\/php-validation-filter-var-preg_match\/\">PHP Validation | filter_var | preg_match<\/a><\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Bitwise Operator<\/h2>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u0926\u094b \u092f\u093e \u0926\u094b \u0938\u0947 \u0905\u0927\u093f\u0915 \u092c\u093f\u091f \u0915\u0947 \u092c\u093f\u091a \u092e\u0947\u0902 Comparison or Bit \u0915\u094b \u0936\u093f\u092b\u094d\u091f \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f <strong>Arduino Bitwise Operator<\/strong> \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948\u0902 \u0964<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>(~) Bitwise Not : <\/strong>0 \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 1, \u0914\u0930 1 \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 0 \u0939\u094b \u091c\u093e\u0924\u093e \u0939\u0948 \u0964<\/li><li><strong>(&amp;) Bitwise AND :<\/strong> \u092f\u0926\u093f \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 1 \u0939\u0941\u0906 \u0924\u094b 1 Return \u0939\u094b\u0917\u093e \u0964<\/li><li><strong>(^) Bitwise XOR :<\/strong> \u092f\u0926\u093f \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 0 \u0914\u0930 \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 1 \u0939\u0941\u0906 \u0924\u094b 0 Return \u0939\u094b\u0917\u093e otherwise 1 Return \u0939\u094b\u0917\u093e\u0964<\/li><li><strong>(|) Bitwise OR :<\/strong> \u092f\u0926\u093f \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 \u0938\u0947 \u0915\u093f\u0938\u0940 \u090f\u0915 \u092e\u0947\u0902 \u092d\u0940 1 \u0939\u0941\u0906 \u0924\u094b 1 Return \u0939\u094b\u0917\u093e \u0964<\/li><li><strong>(&lt;&lt;) Bitshift Left :<\/strong> \u092c\u093f\u091f \u0915\u094b Left \u092e\u0947\u0902 \u0936\u093f\u092b\u094d\u091f \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0910\u0938\u093e \u0915\u0930\u0928\u0947 \u0938\u0947 \u0935\u0948\u0932\u094d\u092f\u0942 2 \u0938\u0947 \u0917\u0941\u0923\u093e \u0939\u094b \u091c\u093e\u0924\u0940 \u0939\u0948\u0902 \u0964<\/li><li><strong>(&gt;&gt;) Bitshift Right :<\/strong> \u092c\u093f\u091f \u0915\u094b Right \u092e\u0947\u0902 \u0936\u093f\u092b\u094d\u091f \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0910\u0938\u093e \u0915\u0930\u0928\u0947 \u0938\u0947 \u0935\u0948\u0932\u094d\u092f\u0942 2 \u0938\u0947 \u092d\u093e\u0917 \u0939\u094b \u091c\u093e\u0924\u0940 \u0939\u0948\u0902 \u0964<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\nint a = 5; \/\/ 0 1 0 1  in Binary\nint b = 9; \/\/ 1 0 0 1  in Binary\nint c = 0;\n\n Serial.begin(9600);\n\n c = ~a;    \/\/ 1 0 1 0, -6 in Decimal\n Serial.print(\" ~a = \"); \n Serial.println(c); \n\n c = ~b;    \/\/ 1 1 1 1 0 1 1 0,  -10 in Decimal        \n Serial.print(\" ~b = \"); \n Serial.println(c); \n\n c = a &amp; b; \/\/ 0 0 0 1,  1 in Decimal \n Serial.print(\" a &amp; b = \"); \n Serial.println(c); \n\n c = a | b; \/\/ 1 1 0 1, 13 in Decimal  \n Serial.print(\" a | b = \"); \n Serial.println(c); \n\n c = a ^ b; \/\/ 1 1 0 0, 12 in Decimal   \n Serial.print(\" a ^ b = \"); \n Serial.println(c); \n\n c = a &lt;&lt;1; \/\/ 1 0 1 0, 10 in Decimal  \n Serial.print(\" a &lt;&lt;1 = \"); \n Serial.println(c); \n \n c = b &gt;&gt;1; \/\/ 0 1 0 0, 4 in Decimal  \n Serial.print(\" b &gt;&gt;1 = \"); \n Serial.println(c);  \n}\n  <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Compound Operator<\/h2>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u092f\u0939\u093e\u0901 \u092a\u0930 Compound \u0936\u092c\u094d\u0926 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0907\u0938\u0932\u093f\u090f \u0915\u093f\u092f\u093e \u0917\u092f\u093e \u0939\u0948\u0902 \u0915\u094d\u092f\u0941\u0915\u0940 \u091c\u092c \u092d\u0940 \u0939\u092e \u0915\u093f\u0938\u0940 \u092d\u0940 Sign \u0915\u0947 \u0938\u093e\u0925 = \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u0924\u094b Left Side \u0935\u093e\u0932\u0947 Variable \u092e\u0947\u0902 \u0939\u0940 Operation \u0939\u094b \u0915\u0930 Value Assign \u0939\u094b \u091c\u093e\u0924\u0940 \u0939\u0948\u0902 \u0964<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Arduino Compound <strong>Arithmetic Operators<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>(+=) Compound Addition :<\/strong> \u091c\u094b\u0921\u093c\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(-=) Compound &nbsp;Subtraction :<\/strong> \u0918\u091f\u093e\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(*=) Compound Multiplication :<\/strong> \u0917\u0941\u0923\u093e \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li>(\/=) <strong>Compound Division<\/strong> : \u092d\u093e\u0917 \u0926\u0947\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><li><strong>(%=) &nbsp;Compound &nbsp;Remainder :<\/strong> \u0936\u0947\u0937 \u0928\u093f\u0915\u0932\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\n int a = 10;\n int b = 3;\n Serial.begin(9600);\n\n Serial.print(\"Addition = \");\n a += b; \/\/ a = a + b   ans a=13\n Serial.println(a);\n \n Serial.print(\"Subtraction = \");\n a -= b; \/\/ a = a - b   ans a=10\n Serial.println(a);\n\n Serial.print(\"Multiplication = \");\n a *= b; \/\/ a = a * b   ans a=30\n Serial.println(a);\n\n Serial.print(\"Division = \");\n a \/= b; \/\/ a = a \/ b;  ans a=10\n Serial.println(a);\n\n Serial.print(\"Remainder = \");\n a %= b; \/\/ a = a % b;  ans a=1\n Serial.println(a);\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Arduino Compound Bitwise Operator<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>(~=) <strong>Compound<\/strong> <strong>Bitwise Not : <\/strong>0 \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 1, \u0914\u0930 1 \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 0 \u0939\u094b \u091c\u093e\u0924\u093e \u0939\u0948 \u0964<\/li><li>(&amp;=) <strong>Compound<\/strong> <strong>Bitwise AND :<\/strong> \u092f\u0926\u093f \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 1 \u0939\u0941\u0906 \u0924\u094b 1 Return \u0939\u094b\u0917\u093e \u0964<\/li><li>(^=) <strong>Compound<\/strong> <strong>Bitwise XOR :<\/strong> \u092f\u0926\u093f \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 0 \u0914\u0930 \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 1 \u0939\u0941\u0906 \u0924\u094b 0 Return \u0939\u094b\u0917\u093e otherwise 1 Return \u0939\u094b\u0917\u093e\u0964<\/li><li>(|=)   <strong>Compound<\/strong> <strong>Bitwise OR :<\/strong> \u092f\u0926\u093f \u0926\u094b\u0928\u094b\u0902 \u092c\u093f\u091f \u092e\u0947\u0902 \u0938\u0947 \u0915\u093f\u0938\u0940 \u090f\u0915 \u092e\u0947\u0902 \u092d\u0940 \u0967 \u0939\u0941\u0906 \u0924\u094b \u0967 re \u0939\u094b\u0917\u093e \u0964<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp\">void setup() {\nint a = 5; \/\/ 0 1 0 1  in Binary\nint b = 9; \/\/ 1 0 0 1  in Binary\n Serial.begin(9600);\n\n\/*----------Compound Bitwise Operator--------------------------*\/\n Serial.println(\"\");\n Serial.println(\"Compound Bitwise Operator\"); \n \na = 5; \/\/ 0 1 0 1  in Binary\nb = 9; \/\/ 1 0 0 1  in Binary\nSerial.print(\" a&amp;=b \"); \na&amp;=b; \/\/a = a &amp; b;  0 0 0 1,  1 in Decimal \nSerial.println(a); \n\nSerial.print(\" a|=b \"); \na|=b; \/\/a = a | b;  1 0 0 1,  9 in Decimal  \nSerial.println(a); \n\nSerial.print(\" a^= \"); \na^=b; \/\/a = a ^ b;  0 0 0 0,  0 in Decimal   \nSerial.println(a); \n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Arduino Compound <strong>Increment Operator<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">(++) Value \u0915\u094b 1 \u0938\u0947 Increment \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">void setup() {\n Serial.begin(9600);\n \/*----------Compound Increment Operator--------------------------*\/\n Serial.println(\"\");\n Serial.println(\"Compound Increment Operator\"); \n  \nx=10;\ny=0;\n\n\/\/Pre Increment\nSerial.print(\" Pre Increment y= \"); \ny = ++x;     \/\/ x=11, y=11;\nSerial.print(y); \nSerial.print(\" x= \"); \nSerial.println(x);\n\n\/\/Post Increment\nSerial.print(\" Post Increment y= \"); \ny = x++;     \/\/ x=12, y=11;\nSerial.print(y); \nSerial.print(\" x= \"); \nSerial.println(x);\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Arduino Compound <strong>Decrement<\/strong> Operator<\/h3>\n\n\n\n<p>(&#8211;) Value \u0915\u094b 1 \u0938\u0947 Decrement \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">void setup() {\n Serial.begin(9600);\nint x=10;\nint y=0;\n\n\/*----------Compound Decrement Operator--------------------------*\/\nSerial.println(\"\");\nSerial.println(\"Compound Decrement  Operator\"); \n\n\/\/Pre Decrement\nSerial.print(\" Pre Decrement y= \"); \ny = --x;     \/\/ x=9, y=9;\nSerial.print(y); \nSerial.print(\" x= \"); \nSerial.println(x);\n\n\/\/Post Decrement\nSerial.print(\" Post Decrement y= \"); \ny = x--;     \/\/ x=8, y=9;\nSerial.print(y); \nSerial.print(\" x= \"); \nSerial.println(x);\n}\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/selfimagination.in\/tips\/arduino-data-types\/\"><strong>Arduino Data Types<\/strong><\/a><\/li><li><strong><a href=\"https:\/\/selfimagination.in\/tips\/arduino-control-structure\/\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Control Structure<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/selfimagination.in\/tips\/arduino-time-delay-delaymicrosecond-millis-micros\/\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Time Function<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/selfimagination.in\/tips\/arduino-math-functions\/\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Math Functions<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/selfimagination.in\/tips\/arduino-analog-digital-read-write\/\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Analog\/Digital Read\/Write<\/a><\/strong><\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><\/p>\n\n\n\n<p>\u0906\u092a\u0915\u094b Arduino Operators Article \u0915\u0948\u0938\u093e \u0932\u0917\u093e \u0939\u092e\u0947 \u091c\u0930\u0942\u0930 \u092c\u0924\u093e\u090f , \u0905\u092a\u0928\u093e \u0915\u0940\u092e\u0924\u0940 \u0938\u092e\u092f \u0926\u0947\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0927\u0928\u094d\u092f\u0935\u093e\u0926 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0907\u0938 Article \u092e\u0947 \u0906\u092a\u0915\u094b Arduino Operators \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947 \u092c\u0924\u093e\u092f\u093e \u0917\u092f\u093e \u0939\u0948\u0902 , \u091c\u092c \u092d\u0940 \u0939\u092e\u0947 \u0915\u093f\u0938\u0940 \u092d\u0940 \u092a\u094d\u0930\u0915\u093e\u0930 \u0915\u093e Calculattion \u0914\u0930 Comparison \u0915\u0930\u0928\u093e \u0939\u094b \u0924\u092c \u0939\u092e\u0947 Operator \u0915\u0940 \u091c\u0930\u0942\u0930\u0924 \u0932\u0917\u0924\u0940 \u0939\u0948\u0902 \u0964 Arduino Arithmetic Operators \u091c\u092c \u092d\u0940 \u0939\u092e\u0947 \u0915\u094b\u0908 Arithmetic Caluclation \u0915\u0930\u0928\u093e \u0939\u094b \u091c\u0948\u0938\u0947 \u0915\u0940 Addition Substraction \u0924\u094b \u0939\u092e Arduino Arithmetic Operators \u0915\u093e \u0909\u092a\u092f\u094b\u0917 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1852,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2021\/07\/arduino-operators.jpg?fit=1200%2C628&ssl=1","_links":{"self":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/comments?post=1727"}],"version-history":[{"count":151,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1727\/revisions"}],"predecessor-version":[{"id":5161,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1727\/revisions\/5161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media\/1852"}],"wp:attachment":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media?parent=1727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/categories?post=1727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/tags?post=1727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}