Dynamic memory allocation

sir had said that for a[1000] , size of a is 1000 for the static memory allocation but it should be 4000?

in terms of bytes yes it should be 4000 (if its an integer array), mentor meant that size as number of elements a can hold which was 1000

thanks for the clarification

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.