Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Day 9

Quiz

A1: A reference is an alias, and a pointer is a variable that holds an address. References cannot be null and cannot be assigned to.
A2: When you need to reassign what is pointed to, or when the pointer might be null.
A3: A null pointer (0).
A4: This is a shorthand way of saying a reference to a constant object.
A5: Passing by reference means not making a local copy. It can be accomplished by passing a reference or by passing a pointer.
A6: All three are correct; however, you should pick one style and then use it consistently.

 


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial