Write the sum function that returns the sum of three variable values, where each is decreased by one. Use variables a, b and c as function parameters.
Remember the difference between prefix and postfix increment.
Write the sum function that returns the sum of three variable values, where each is decreased by one. Use variables a, b and c as function parameters.
Remember the difference between prefix and postfix increment.
Sample Input 1:
10 11 -2Sample Output 1:
16Sample Input 2:
1 1 0Sample Output 2:
-1Create a free account to access the full topic