Write square(n) that returns n*n, then print square of 5.
square(n) returns n times n. main calls square(5) and prints 25. The multiply lives in the helper so main stays a short story: ask, print, leave.
argument
n*n
return
25
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. Prints:
square(5).
2. The parameter n is:
Argument.
3. Could square be void?
Then main would not receive 25.
4. The call expression square(5) is replaced by:
Return value.
5. Recursive square does not make sense because:
No natural smaller square.