Question: How do you get a value from a pointer? Say popeye is an int pointer. How would you gets it's value? Why do C++ programmers

  1. How do you get a value from a pointer? Say popeye is an int pointer. How would you gets it's value?
  2. Why do C++ programmers use pointers? What is an upside and a downside to pointers?
  3. What sort of mathematics can you do with pointers?
  4. If you sent a pointer to a function- can you alter the value that the pointer is pointing at in the main program?
  5. Does char* allow you to point to an array that contains a string of characters and not just single characters?
  6. What is a reference variable in C++?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!