Explore BrainMass
Share

Explore BrainMass

    C++ linked list pointers

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

    Given the attached code (see file), what is the values of the following expressions.

    They may be undefined or the boolean expression may be invalid

    a) firstptr->next->firstname
    b) firstptr->next-next->SSN
    c) firstptr->next==lastptr
    d) currptr->next->lastname
    e) currptr->next->lastname
    f) firstptr==lastptr->next
    g)firstptr->SSN<firstptr->next->SSN.

    © BrainMass Inc. brainmass.com October 9, 2019, 7:51 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/linked-list-pointers-131339

    Attachments

    Solution Preview

    a) firstptr->next->firstname
    "sally"

    b) ...

    Solution Summary

    Linked list of pointers is explored.

    $2.19