Difference between revisions of "C оператори"
From Ilianko
Line 6: | Line 6: | ||
a * b = 2; | a * b = 2; | ||
a / b = 0; | a / b = 0; | ||
− | a % b = | + | a % b = 1 |
++a <=> a = a + 1 ; --a <=> a = a - 1 | ++a <=> a = a + 1 ; --a <=> a = a - 1 | ||
</pre></code> | </pre></code> |
Revision as of 08:45, 23 March 2011
Математически
int a = 1, b = 2;
a + b = 3;
a - b = -1;
a * b = 2;
a / b = 0;
a % b = 1
++a <=> a = a + 1 ; --a <=> a = a - 1
Сравнителни Логически Побитови За присвояване