// Sample Program to demonstrate the use of Command line arguments
#include < stdio.h >
#include < conio.h >

void main (int argc, char *argv[])
	{
	int count;
        clrscr();
  	printf ("Number of arguments %d \n", argc);
	for (count = 0; count < argc; count ++)
	{
	printf ("argv[%d] = %s\n", count,argv[count]);
	}
	getch( );
	}
<< GO BACK

Our aim is to provide information to the knowledge seekers.


comments powered by Disqus






Footer1