QP School
Operators and Expressions in C - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32)
+--- Thread: Operators and Expressions in C (/showthread.php?tid=5077)



Operators and Expressions in C - Qomplainerz - 07-25-2023

C supports various operators for performing arithmetic, comparison, logical, and bitwise operations.

int x = 10, y = 5;
int sum = x + y; // Arithmetic operator (+)
int is_equal = (x == y); // Comparison operator (==)
int is_true = (x && y); // Logical AND operator (&&)