Difference between revisions of "C оператори"
From Ilianko
m (Protected "C оператори" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
|||
Line 7: | Line 7: | ||
a / b = 0; | a / b = 0; | ||
a % b = 1 | a % b = 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
Сравнителни Логически Побитови За присвояване