Functions
If we were to create a function in order to add two
integers producing an integer result we would use
the following notation:
int add(int x, int y)
{
int returnValue = 0;
returnValue = x + y;
return returnValue;
}
Previous slide
Next slide
Back to first slide
View graphic version