Explore BrainMass

Explore BrainMass

    C++: Pointers

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    What is exactly a pointer in C?
    What is the significance of a NULL pointer?

    © BrainMass Inc. brainmass.com March 4, 2021, 9:03 pm ad1c9bdddf

    Solution Preview

    A pointer in C is a variable that holds an address as its value. Usually, when accessing a pointer variable's value you are more interested in the value at the address the variable holds rather than the address itself. For example, consider the following two variable declarations:

    int x;
    int* p;

    The first creates a variable "x" that holds integer values. The second creates a variable "p" that holds ...

    Solution Summary

    This solution explores the role of pointers in C, in the context of computer science.