Question: Consider the following struct: struct Person { string * name; } ; If person is a variable of the above struct, what will the following
Consider the following struct:
struct Person
string name;
;
If person is a variable of the above struct, what will the following code do:
cout personname endl;
Group of answer choices
output the value of name after dereferencing the struct pointer person.
output the address stored in name
result in a compiler error
output the value stored in person
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
