Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is how the function is named, its return type and parameters defined with sudo code.


datatype functionName (parameter,.....int functionName (int parameterName)

{

     return parameterName + 5;

}

...

<function contents>

<possible return value>

}


Function call 

This is how we execute a function:...


functionName(parameter) ;,.....) ;