Difference between revisions of "C оператори"

From Ilianko
Line 24: Line 24:
  
 
[[http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B| Оператори в C и C++]]
 
[[http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B| Оператори в C и C++]]
 +
 +
 +
[[Category:C Справочник]]

Revision as of 09:30, 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

Сравнителни == != > < >= <=

Логически

Побитови

За присвояване




[Оператори в C и C++]