programming

Integers

typebytesscanfprintf
int4%d %i%d
char1%c %hhd%c %d
short2%hd%d
long4/8%ld%ld
long long8%lld%lld

Float

typebytesscanfprintf
float4%f%f
double8%lf%lf %f
long double10%Lf%llf %Lf
all%g %e

Boolean

valueboolean
0false
not 0true

Other