- #1
fog37
- 1,568
- 108
Hello,
In C (or C++), a function is a body of instructions. Functions can be classified as functions that
1) receive inputs and produce outputs
2) receive no inputs and produce no outputs
3) receive inputs and produce no outputs
4) receive no inputs and produce outputs
For case 1) and 4), the function body must alwaysinclude the instruction return, correct? The argument of return is the output of the function. What if the function needed to produce more than one output? Can the return instruction handle more than just one output?
Thanks
In C (or C++), a function is a body of instructions. Functions can be classified as functions that
1) receive inputs and produce outputs
2) receive no inputs and produce no outputs
3) receive inputs and produce no outputs
4) receive no inputs and produce outputs
For case 1) and 4), the function body must alwaysinclude the instruction return, correct? The argument of return is the output of the function. What if the function needed to produce more than one output? Can the return instruction handle more than just one output?
Thanks