End Google Ads 201810 - BS.net 01 --> hi all,
people may feel that the question what i ask is very basic but guess what i didnt found the right answer for this
thats the reason i am posting here so please help me...

1. when we allocate 50bytes of memory via malloc or new
and while using free or delete[] on this variable how does it knows to delete all those 50 blocks.....

2.

int i = 10;
int &a = i;
a = 30;


how does compiler knows that it need to change the value of i to 30.

please help me.......