Flashcards
Untitled
Cards in this deck (7)
- 1Function or SubroutineFunctions are "self contained" modules of code that accomplish a specific task.
- 2How do they work?They "take in" data, process it, and "return" a result.
- 3DeclarationReturn Type+Function Name+Parameters
- 4Return TypeThe type of the result the function will return
- 5Function NameThe functions name, think of a title that tells people what this function will do
- 6ParametersVariables that the function needs in order to properly work
- 7Examplefloat Sum (int number1, int number2){
int result=number1+number2;
}
Information
- Description
- Computer Science Computer Science Flashcards on Untitled, created by José Miguel Gallardo on 12/02/2015.
- Created by
- José Miguel Gallardo
- Views
- 7
- Rating