Tag Archives: book

The C language still surprises me

What does this code print? 1 2 3 4 5 6 7 8 9 10 11 12 #include <stdio.h>   int main() { signed char x = -128;   if (x < 0) { x = -x; } printf("x = %d\n", (int) x); return 0; } I’ve been reading Matters Computational, an excellent (free) book [...]