Interrupt vectors, the NULL pointer, printf
- The first 256 words of an IA32 machine in memory are interrupt vectors - pointers to routines that handle interrupts. They reside in the first 1024 bytes of addressable memory. Its also called a dispatch table.
- char * ptr; (ptr = NULL) = 0; Whilst 0 and NULL are equivalent in pointer context, NULL's actual value is not guaranteed to be 0 (all bits zero).
- If you ever want to print a float such that trailing zeros are omitted, use %g.
Cheers,
Steve
0 Comments:
Post a Comment
<< Home