Im studying for my final on c++ and the instructor gave us some questions to study that will help us in the final exam. There is this one question that I didnt know how to solve. Here it is:
Declare a pointer variable "structPointer" and initialize it to point to a struct variable called "newPhone", of type "Phone", that has three int fields called "country", "area" and "number". Also write the declaration of the "Phone" type. Then write assignment statements to indirectly store the values 1, 888, 5551212 into these fields.
It seems simple and I tried to do it but sometimes I just get lost. Can someone please solve this for me. The final is tomorrow and Im probably going to need to know this.