[prev] 53 [next]

Pointers (cont)

Things to note:
  • all pointers constrained to point to a particular type of object

    // a potential pointer to any object of type char
    char *s;
    
    // a potential pointer to any object of type int
    int *p;
    

  • if pointer p is pointing to an integer variable x
    ⇒   *p can occur in any context that x could