LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

What are the C operator categories and their symbols?

Six families: arithmetic, bitwise, logical, relational, assignment, and the two memory operators & (address-of) and * (dereference).

Category Operators Example
Arithmetic +, -, *, /, % c = a * b / c;
Bitwise &, |, ~, ^, <<, >> a = c & d | a;
Logical &&, ||, ! a = a && b;
Relational <, <=, ==, !=, >=, > a = a <= b;
Assignment = c = a + b;
Memory & (address), * (dereference) p = &c; d = *p;

Complex example:

d = *p & a ^ (b << (c!=d));
// Dereference p, AND with a, XOR with (b shifted left by (c!=d))

Tip: When in doubt about precedence, use parentheses! Or check: https://en.cppreference.com/w/c/language/operator_precedence

From Quiz: REVE1 / C Programming | Updated: Jul 14, 2026