// A program that displays its command line arguments #include int main(int argc, char *argv[]) { int i; cout << "\nThe following arguments were passed to main(): "; for (i = 1; i < argc; i++) cout << argv[i] << " "; cout << endl; return 0; }