Back to Home & C
//Program to read values from command line and print it
#include<stdio.h>
#include<conio.h>
void main(int argc,char *argv[])
{
for(i=1;i<argc;i++)
{
printf("%s\n",arv[i]);
}
}
--------------------------------------------------------------
Output:
=========================================================================
Back to Home & C
//Program to read values from command line and print it
#include<stdio.h>
#include<conio.h>
void main(int argc,char *argv[])
{
for(i=1;i<argc;i++)
{
printf("%s\n",arv[i]);
}
}
--------------------------------------------------------------
Output:
=========================================================================
Back to Home & C