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; };
};

I run this now via linux 64bit I found that size of class node is 16bytes ... 4 for int u, 8 for *next.... and remaining 4 bytes unknown, how can i identify or say size for each class elements

razzaksr
  • 9
  • 2

0 Answers0