// example02.cpp : Defines the entry point for the console - TopicsExpress



          

// example02.cpp : Defines the entry point for the console application. // #include stdafx.h #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char letters[2]; //declare array has two elements char *ptLetters; //declare a pointer variable that points to a character letters [0] = ‘A’; ptLetters = &letters[0]; // assign the address of the first array element to the character pointer //dereference the name of the array to display the contents of the first array element cout< pointer ;: “
Posted on: Mon, 31 Mar 2014 07:56:23 +0000

Trending Topics



Recently Viewed Topics




© 2015