Why is there only 1 padding byte for a char (on a 32-bit machine)?

前端 未结 0 1127
不思量自难忘°
不思量自难忘° 2020-12-23 12:42

A tutorial on data padding says that the char c following int i in the C struct below needs 1 padding byte.

struct test2
{
    int i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题