Home > Back-end >  Pointer variable is how to find corresponding through it save the address of the memory
Pointer variable is how to find corresponding through it save the address of the memory

Time:10-07

A pointer is how to find memory through it to save the address in the corresponding position, and pointer variable how many bytes? Thank you all!

CodePudding user response:

At the bottom is actually using CPU addressing mechanism, such as base addressing
Pointer to the byte size is associated with operating system and development environment, is a 32-bit pointer length under Win32, under Win64 is 64

CodePudding user response:

Int a=10;
Int * p=& amp; a;//will be the address of a given p
Printf (" % d ", * p).//show p points to address, is 10
  • Related