#include <stdio.h>
#include <math.h>
int main(int argc, char **argv)
{
float h;
printf( “aantal argc: %d\n” ,argc);
printf( “argv0: %s\n”, argv[0]);
printf( “argv1: %s\n”, argv[1]);
h=0x3fff;
/*
16 * 16^0
16 * 16^1
16 * 16^2
3 * 16^3
= 16656
*/
printf( “h: %f\n”, h);
h=(100.0 / h);
printf( “h: %f\n”, h);
return 0;
}
compiled and executed it:
$ ./ctest
aantal argc: 1
argv0: ./ctest
argv1: (null)
h: 16383.000000
h: 0.006104
Well that’s very exiting.