in the programme of dynamic memory allocation why the size of a is coming as 8 instead of 4 as a is of int type?(int*a=new int[1000])
In the programme of dynamic memory allocation
hello @Kshubham1532
size of datatype in not fixed ,it depends on the platform you’re using, as well as how your compiler is configured.
okay thanks ,i got it
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.