Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Operators and Expressions in C
#1
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 (&&)
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)