07-25-2023, 10:51 AM
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 (&&)
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 (&&)