UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

5.10. Automatic self-assessment

  1. The size of a pointer depends on the data type to what this pointer points to

    • True

    • False

  2. A pointer variable can have after it

    • The operador &

    • The operator *

    • The operators & and *

  3. An integer variable can have after it

    • The operator &

    • The operator *

    • The operators & and *

  4. Let be "p" a pointer to a struct that has been allocated with dynamic memory. In order to access to a field of this struct, you can use

    • always something of the form "p->"

    • always something of the form "p."

    • something of the form "p->" if the accessed field is a pointer

    • something of the form "p->" if the accessed field is not a pointer

  5. Indicate which of the following is a typical use of pointers

    • pass parameters by reference

    • set links among data structures

    • restrict reading access to files