// file: lecture_12/example.cc // // a simple program to play around with data types, including // pointers and arrays // // system include files // #include "example.h" // function: main // // main program starts here // int main(int argc, char** argv) { char* str = (char*)"Joe"; char* pstr = str; long i = 0; while (*pstr != (char)NULL) { fprintf(stdout, "%d: %c\n", i++, *pstr++); } // exit gracefully // return(0); }