#include #include #include using namespace std; int main() { int i {10}; int *p1 {&i}; //p1 holds the address of i. cout << "The value of i is " << i << "\n"; cout << "The value of i is " << *p1 << "\n\n"; struct month { string name; int length; //how many days }; month m {"January", 31}; month *p2 {&m}; //p2 holds the address of m. cout << "The name of the month is " << m.name << "\n"; cout << "The name of the month is " << (*p2).name << "\n"; cout << "The name of the month is " << p2->name << "\n\n"; cout << "The length of the month is " << m.length << "\n"; cout << "The length of the month is " << (*p2).length << "\n"; cout << "The length of the month is " << p2->length << "\n\n"; return EXIT_SUCCESS; }