C++ Programming: From Problem Analysis to Program Design, Fourth Edition15 Classes, Structs, and Pointer Variables (continued) To store address of student in studentPtr : studentPtr = &student; To store 3.9 in component gpa of student : (*studentPtr).gpa = 3.9; −() used because dot operator has higher precedence than dereferencing operator −Alternative: use member access operator arrow ( -> )
{}