The video said if we write
int* a = new int [10000];
cout<<sizeof(a)<<endl;
then the answer should be 4 (as per sir)
but when i tried it answer came out to be 8.
pls explain the difference
The video said if we write
int* a = new int [10000];
cout<<sizeof(a)<<endl;
then the answer should be 4 (as per sir)
but when i tried it answer came out to be 8.
pls explain the difference
i searched that all pointer variables have size 8
is it true?? pointer char, int ,float everyone has a size of 8 bytes??
okay…thanks a lot for the help
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.