#include #include #include #include #include #include void main () { char phrase [50] = {"The quick brown fox jumped over the lazy dog"} ; // 50 bytes char *phrase_ptr = phrase ; // already points to address, doesn't need &. 4 bytes // pointer variable - holds address cout << "phrase = " << phrase << endl << endl ; cout << "phrase_ptr = " << phrase_ptr << endl << endl ; cout << "size of phrase_ptr= " << sizeof(phrase_ptr)<< endl << endl ; cout << "*phrase_ptr = " << *phrase_ptr << endl << endl ; cout << "*(phrase + 2) = " << *(phrase + 2) << endl << endl ; cout << "*phrase + 4 = " << (*phrase + 4) << endl << endl ; cout << "(phrase + 4) = " << (phrase + 4) << endl << endl ; cout << "(phrase_ptr + 4) = " << (phrase_ptr + 4) << endl << endl ; cout << "&phrase = " << &phrase << endl << endl ; cout << "&(*phrase_ptr) = " << &(*phrase_ptr) << endl << endl ; // never do cout << "&(*phrase) = " << &(*phrase) << "\n" ; // never do cout << "**************************************************"<< endl << endl ; //****************************************************************************** int scores [5] = {98, 78, 65, 78, 84} ; int *scores_ptr = scores ; cout << "scores = " << scores << endl << endl; cout << "scores_ptr = " << scores_ptr << endl << endl; cout << "size of phrase_ptr= " << sizeof(phrase_ptr)<