CS208 Introduction to Computer Systems Wednesday, 8 October 2025 + Questions (class-related or not...) + What output does this produce? int x = 0x00434241; char *p = (char *)(&x); // &x is the address of x; but now it's a char *? printf("%x\n", x); printf("%s\n", p); ---- char *p = "asdf"; int *k = NULL; k = (int *)p; // p is 8 bytes, k is 8 bytes, so this assignment just copies 64 bits --- when is malloc needed? + Forgot to mention... - Why has the super-weird UTF-8 taken over the world? + Misc fun with bits - base64 - Color - BMP file format - Steganography -