Accessing The Address of a variable in Pointers in C

Accessing The Address of a variable

  • The actual location of a variable in the memory is system dependent
  • It may vary throughout the execution
  • Address operator is used to access it
  • &125, int x[10], &x, &(x+y) are illegal use of address operator
  • &x[0] or &[x+i] are valid operations

No comments:

Post a Comment