// Program to illustrate command line arguments (Example.cpp)
#include<iostream.h>
#include<iomanip.h>
int main(int argc,char *argv[])
{
     cout<<"\n Number of command line arguments = "<<argc;
     cout<<"\n Arguments are : ";
     for(int i=0;i<argc;i++)
     cout<<setw(10)<<argv[i];
}
Test data
Example one two three
Number of command line arguments = 4
Arguments are : Example one two three