TOC | Prev | Next

Misc

Casts are very different. In PHP, casts are coercions. In C, casts
tell the compiler "Don't mind me, I know what I'm doing."

char *str = "4096";
int n = (int)str + 3;