Logically speaking pointer points to a variable of given type.
for ex. integer will hold some value where as pointer to it will store address of that integer in memeory allocated to it. *(value of) operator will give value of integer to which it is pointing. Value and address both are integers.
So from memeory point of view there is no difference. So what makes pointer behave differently; have other operations than non-pointers.. i know there must be code written for those operators in pass 1 or so on but sometimes value of non-pointer variable and pointers can also be same. So, i want to know wats making them different in memory, so as to identify them separately?
for ex. integer will hold some value where as pointer to it will store address of that integer in memeory allocated to it. *(value of) operator will give value of integer to which it is pointing. Value and address both are integers.
So from memeory point of view there is no difference. So what makes pointer behave differently; have other operations than non-pointers.. i know there must be code written for those operators in pass 1 or so on but sometimes value of non-pointer variable and pointers can also be same. So, i want to know wats making them different in memory, so as to identify them separately?
Comment