Chapter 6 - User-Defined Functions

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

modules

another name for a function

2
New cards

parameters

an identifier in a function header which acts within the function as a regular local variable; a parameter may be formal or actual

3
New cards

function header

includes the name of the function the number of parameters if any the data type of each parameter and the data type of the value returned by the function

4
New cards

body

the code within the function required to accomplish the task

5
New cards

definition

includes the name of the function a listing of the parameters if any the data type of each parameter the data type of the value returned by the function and the code required to accomplish the task

6
New cards

formal parameter

a variable declared in the function heading

7
New cards

actual parameters

a variable or expression listed in a call to a function

8
New cards

data type

the return type of a value-returning function

9
New cards

return type

the data type of the value that the function returns; also called the data type of a function

10
New cards

local declaration

a declaration of a variable within a block of code for use only within that block

11
New cards

function prototypes

a function heading without the body of the function

12
New cards

value parameters

A formal parameter that receives a copy of the content of the corresponding actual parameter

13
New cards

reference parameters

A formal parameter that receives the location (memory address) of the corresponding actual parameter

14
New cards

local variables

variables declared in the body of a function (or block) for use only within that function (or block)

15
New cards

scope

refers to where an identifier is accessible (visible) in a program

16
New cards

local identifiers

an identifier declared within a function (or block)

17
New cards

nested block

a block declared within another block

18
New cards

external variable

a global variable declared within a function using the extern reserved word; the keyword extern indicates that the variable is declared elsewhere

19
New cards

automatic variable

a variable for which memory is allocated at block entry and deallocated at block exit

20
New cards

driver

a program that tests a function

21
New cards

function overloading

creating several functions with the same name but different formal parameter lists

22
New cards

different formal parameter lists

when two or more functions with the same name have a different number of formal parameters or if they have the same number of parameters the data type of the parameters differs in at least one positio