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

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 aaaa   bbbb********/

/***** Output will be ... number of strings is 3, and string 0 is ... of course... ./a.out  string 1 is  aaaa  bbbb***/


Return to previous page