Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 955 Bytes

File metadata and controls

28 lines (20 loc) · 955 Bytes

Assignment7

Objectives

To gain a thorough understanding of pointers.

Part 1

  1. Submit the exercise code you worked on during class.

Part 2

In a text file assignment7.txt, answer the following questions:

  1. Explain the difference between ++*p, *p++ and *++p.
  2. How would the NULL pointer be represented in terms of its data type and value? Your answer should be in a format such as (int) 3 or (char) c. Please also include an explanation.
  3. What are use cases for NULL pointers?
  4. Can you subtract pointers? Can you add them? Why would you?
  5. What is the difference between the following declarations:
    int* arr1[8];
    int (*arr2)[8];
    int *(arr3[8]);

Submission Guidelines

Please include your name and a description in a comment at the top of your code files. Please also include your name at the top of your assignment7.txt file.

All files must be submitted via GitHub by 10:10am 8/2.