Query regarding store address of variable in stack? I am using 64bit PC. What address of char variable(cht) stores before addrees of m?
Output as below-
Address of m=0x7ffc0e97b628 Address of fx=0x7ffc0e97b62c Address of cht=0x7ffc0e97b627 - ? Address of pi=0x7ffc0e97b630 Address of pf=0x7ffc0e97b638 Address of pc=0x7ffc0e97b640
store address of pointer variable 8 byte due to 64 bit. store pointer address is machine dependent!
Generic pointers are the pointers which don't have any specific type i.e. void*, since we don't know what kind of data is stored in them. We can use them when we don't know which type of data to point to.