Reflection: Funtion

I, Summary There are four components to a C function: - its return value - name - parameters - and associated code block( function body). Functions need to be defined before they are used. A function declaration tells the compiler what the function’s inputs and outputs look like. By providing the data types for the return value and parameters of a function, the compiler can make sure that you’re using it properly without knowing what it actually does .The corresponding implementation attaches a code block to the declared function. Function declarations vs. implementations II, Applied to solve problems 1. Implement functions with the following prototypes: int power(int m, int n) – In: m, n; Out: mn I wrote a program. It just ran with small limited, because data type of output is int. It's too small with big data. So I try to instead data types. int gt(int n) – In: n; Out: n! Although, output is int, I replace it by double to ha...