The best understood pointer

 And the difference between the address pointer:
   such type int 32-bit system occupies 4 bytes, int a = 10; a first address is the address
   int * = P & A;
   int * P represents a 4-byte statement in memory pointer type
   p = & a save showing a first address to the memory pointer p
   * p: p get a pointer to the memory address stored in memory at the memory


  @ 2 exchange data pointers implemented
  // a and b is not exchanged, the exchange of addresses a1 and b1 is
int main () {
 int = A. 1;
 int b = 2;
 int & A = a1 *;
 int * b1 & B =;
 int * TEMP;
 TEMP = A1;
 A1 = B1;
 B1 = TEMP;

 printf("%d====%d\n",*a1,*b1);

  return 0;
}
 

Published 141 original articles · won praise 51 · views 90000 +

Guess you like

Origin blog.csdn.net/dreams_deng/article/details/91329284