Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Learn C arithmetic operators in 6 minutes! ➗

34K views on YouTube

#cprogramming #coding #programming

// arithmetic operators + – * / % ++ —

int x = 10;
int y = 2;
int z = 0;

z = x + y;
z = x – y;
z = x * y;
z = x / y;
z = x % 2;

// x++ increment
// x– decrement

// augmented assignment operators
x+=3;
x-=3;
x*=3;
x/=3;

printf(“%d”, x);

return 0;