Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key


Play button


Play button




Click to flip

6 Cards in this Set

  • Front
  • Back
give the prototype for a pointer to a function, and that takes two integers as argument
what are the advantages of using:
const int foo = 5
instead of
#define foo 5
compiler can type check and make sure foo remains indeed a constant throughout life of a program
there are three situations that cause a copy constructor to be invoked
pass by value
return by value
initialize on the fly with "="
what do public private and protected mean and how are they different
a public member is accessible by anyone
a private member is not accessible by the class and its friends
a protected member is accessible by class and friends and by members and friends of derived classes
does a destructor for a derived class explicitly call the destructor for the base class
no the system calls the classes up the hierarchy
what is a friend function
a non class function that is allowed access to private members of a class