32 ビット マシン (GCC を使用) でのプログラムの出力はどうなりますか? 説明。
#include<stdio.h>
int main() {
struct node {
int data;
struct node *link;
};
struct node *p, *q;
p = (struct node *) malloc(sizeof(struct node));
q = (struct node *) malloc(sizeof(struct node));
printf("%d, %d\n", sizeof(p), sizeof(q));
return 0;
}
出力が表示されます
4、4。
上記のプログラムは、構造体メンバーのアラインメントのパディングとデータのパッキングに関連していますか?