O
Oscarian
I'm curious to know if anyone can explain why the following code does not
return the second argument exactly, but rather appears to return a random
number (at least it does that on my box).
#include <stdio.h>
int main (int argc, char *argv[]) {
/* Make sure you enter a numerical second argument */
if (argc != 2)
return (0);
printf ("%f\n", atof(argv[1]));
return (0);
}
-Oscarian
return the second argument exactly, but rather appears to return a random
number (at least it does that on my box).
#include <stdio.h>
int main (int argc, char *argv[]) {
/* Make sure you enter a numerical second argument */
if (argc != 2)
return (0);
printf ("%f\n", atof(argv[1]));
return (0);
}
-Oscarian