Sunday, 15 December 2013

C Program to Print the Program Name and All its Arguments

#include < stdio.h>

void main(int argc, char *argv[]) /* command line Arguments */
{
int i;
for (i = 0;i < argc;i++)
{
printf("%s ", argv[i]); /* Printing the string */
}
printf("\n");
}

Output

 this is  c class by Ictjobs.info
this is c class by Ictjobs.info

For More Details Please Visit Ictjobs.info

No comments: