0
class node
{
public:
    int u;
    node* next;
    node() {};
    void setdata(int a) { u = a; };
    void setnext(node* nnext) { next = nnext; };
    int Data() { return u; };
    node* Next() { return next; };
};

これをLinux 64ビット経由で実行すると、クラスノードのサイズが16バイトであることがわかりました... int uの場合は4、* nextの場合は8 ....残りの4バイトは不明です。各クラス要素のサイズをどのように識別または言うことができますか

4

0 に答える 0