#include #include #include main(int argc, char** argv) { float x; int i; printf("On the command line there are %d items\n", argc); x = atof( *(argv + 1)); /* atof converts from char string to a float */ i = atoi( *(argv + 2)); /* atoi converts from char string to an int */ printf("As a string=%s, Converted to float=%f\n", *(argv + 1), x); printf("As a string=%s, Converted to int=%d\n", *(argv + 2), i); }