QP School

Full Version: Operators and Expressions in C
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 (&&)