why size of pointer variable is 8 it should print 4 as pointer variable size is 4.
what does mapping mean ?
Problem related to dyanmic allocation
Hey @vikash3303 ,
Size of your int *a is 8 because it contains 8 bits of address of starting point of an array. That’s why when you use sizeof(a) it shows you 8. Moreover as for mapping, it’s a term used to judge an element in an array . It can be as number of times any element occurs or many other operations can be formed. You will learn more about mapping when you will be introduced to data structures like hash map. Happy to help keep it up @vikash3303
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.