Subscribe to:
Post Comments (Atom)
/*
* 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");
}
$ cc arg9.c
$ a.out this is c class by myhackzs
a.out this is c class by myhackzs
0 comments:
Post a Comment