In example1.c I changed output to: const double output[4] = {3, 4, 5, 6}; Compiled and re-run example1 and I still see only 1 and 0 as a result.