The struct would be stored in a larger area of memory that has previously been malloc&#x27;d (to allow room for the data that you want to put after the header). So long as accesses to the data are before the end of the malloc, it won&#x27;t be out of bounds and so won&#x27;t be undefined behaviour.