I am trying to figure out how much my structure will take memory consumption.Consider the following code
struct tNode{
short data;
tnode *left;
tnode *right;
tnode *student;
}
so i know data
is 2 bytes but what about *left
,*right
and *student
,how much memory will they consume and how to calculate it.