#include <iostream.h>
int fred[] = { 11, 22, 33, 44 };
int *fp;
int main(int argc, char *argv[])
{
for (int i=0; i<argc; i++)
cout << argv[i];
cout << endl << "Hello world." << endl;
fp = fred;
cout << *fp++ << *fp++ << *fp++ << *fp++ << " - Why is this?" << endl;
fp = fred;
cout << fp[0] << fp[1] << fp[2] << fp[3] << endl;
fp = fred;
cout << *fp++;
cout << *fp++;
cout << *fp++;
cout << *fp++;
cout << endl;
fp = fred;
for (i=0; i<4; i++)
cout << *fp++;
cout << endl;
return 0;
}
/* output[INDENT] COUTTRY.EXEonetwothree
Hello world.
44332211 - Why is this?
11223344
11223344
11223344
[/INDENT]*/
Thanks