If you suddenly switch big/little-endian after changing the environment, the program will fail;
A clear interface is always good, even if there are mistakes, there are only a few possibilities.
You can define sum 1 as a float, or you can force type conversion by setting aver1= (float) sum1/3.
int a