On a little-endian machine where unsigned int is 4 bytes, a program declares unsigned int tag = 0x0A0B0C0D;. A generic dump routine receives the address of tag as a void *vp and converts it with const unsigned char *bytes = vp;. Treat byte 0 as bytes[0], the byte at the lowest address. Give byte 0, byte 1 and byte 3, each as a decimal integer.
Unlock full course notes by signing up
True statements about void pointers in ISO C
A team is reviewing a generic container written in ISO C (C11) that passes its elements around as void *. Which of the following statements about void pointers in standard C are true? Select all that apply.