void printSum(void);
Does not actually call the function, it merely declares that it exists. You need to do that so the compiler will know how to call it even though it hasn't been defined yet, so leave that line in. But to actually call the function, you need:
printSum();