C оператори

From Ilianko
Revision as of 08:47, 23 March 2011 by Anko (talk | contribs)

Математически + - * / %

 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++]