Please answer this

How size of a,ie,dynamic memory allocation is coming as 8,it should be 4 bcz sizeof int is 4

hello @garganshul151
no size of int is not fixed. it depends on various factors like ur computer architecture , compiler etc.
so its totally fine if u see size of int as 8

but then why do we take it as 4 generally ?

In most of the system it shows 4 thats why we take 4 in most of the cases. but it can have any other value also ->