Skip to content

CPRF-Session2/Assignment7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

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.

About

Assignment 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published