Skip to main content
Engineering LibreTexts

31.4: Chapter 8

  • Page ID
  • Problem 1: Solution

    float *fptr;

    Problem 3: Solution

    c is an unsigned character, an eight bit (one byte) variable. p is a pointer to an unsigned character meaning that it contains the address of a variable which is an unsigned character (such as c). p could be two, four or eight bytes in size, depending on the operating system.

    Problem 5: Solution

    & is the “address of” operator. It returns the address of the associated variable. * is the dereferencing operator. It returns the value which is at the memory address referenced by the associated variable.

    Problem 7: Solution

    This multiplies b by the value referenced by c (i.e., c is a pointer). It may be more clear to show the pointer dereference explicitly:

    a = b * (*c);