Explore BrainMass
Share

Explore BrainMass

    C++: Pointers

    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 October 9, 2019, 10:16 pm ad1c9bdddf
    https://brainmass.com/computer-science/memory-management/c-pointers-214469

    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.

    $2.19