argc, argv example
Computing the square root of an input number:#include <stdio.h>#include <stdlib.h>main(int argc, char **argv){ float inp; if (argc != 2) { fprintf(stderr,”Usage: a.out number \n”); exit(0); } /* atof converts an ascii string to a float see <stdlib.h> for atoi, atol etc.. */ inp = atof (argv[1]); printf(“%f\n”,inp*inp);}