#include <stdio.h>
/*    NOTE to use enter ./a.out followed by a few strings  ie: ./main aaaa bbbb ***/
/*    NOTE   the number output will be number of strings plus 1 for "a.out"  followed by one string **/
/*    NOTE do not input numin ***/

int main (int numin, char *argv[] )
{
printf(" number of strings is %d, and string 0 is ... of course... %s  string 1 is  %s  \n", numin, argv[0], argv[1]);

return 0;
}


/**********  to compile enter cc main.c ***********/

/********* to run enter ./a.out aaaaa ********/

/***** Output will be ... number of strings is 2, and string 0 is ... of course... ./a.out  string 1 is  aaaaa ***/


Return to previous page