Skip to content
techsnow

C++ Basics

Operators

OperatorExampleResult
+ - * /7 / 23 (integer division!)
%7 % 21
++ / --i++Adds / subtracts 1
== != > < >= <=a == bComparison
&& || !a > 0 && b > 0And, or, not