Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

User-Defined Functio

QuestionAnswer
___ enable you to divide a program into manageable tasks Functions
The C++ system provides the ___ (predefined) functions Standard
To use a standard function, you must: -Know the ___ of the header file that contains the function’s specification, -___ that header file in the program and -Know the name and type of the function and ___ and ___ of the parameters (arguments) Name, include, number, types
There are two types of user-defined functions: ___ functions and ___ functions Value- returning, void
Variables defined in a function heading are called formal ___ Parameters
In a function call, the number of actual parameters and their types must ___ with the formal parameters in the order given Match
To call a function, use its name together with the parameter list
The general syntax of a ___ function is: functionType functionName(formal parameter list) { statements } User-defined
The line functionType functionName(formal parameter list) is called the function ___ (or function header). Statements enclosed between braces ({ and }) are called the ___ of the function. Heading body
If a function has no parameters, you still need the empty ___ in both the function heading and the function call Parentheses
A value-returning function returns its value via the ___ statement Return
A function can have ___ one return statement. However, whenever a return statement executes in a function, the remaining statements are skipped and the function exits More than
A return statement returns only ___ value One
A function ___ announces the function type, as well as the type and number of parameters, used in the function Prototype
When you use function prototypes, user-defined functions can appear in ___ in the program Any order
When the program executes, the execution always begins with the ___ statement in the function main First
User-defined functions execute only when they are Called
A call to a function transfers control from the ___ to the called function Caller
In a function call statement, you specify only the actual parameters, not their ___ or the function type Data type
When a function ___, the control goes back to the caller Exits
A return statement without any value can be used in a ___ function Void
If a return statement is used in a void function, it is typically used to exit the function ___ Early
The heading of a void function starts with the word ___ Void
A void function ___ have parameters May or may not
There are two types of formal parameters: ___ parameters and ___ parameters Value reference
A reference parameter receives the address (memory location) of its corresponding actual parameter
The corresponding actual parameter of a value parameter is an ___, a ___, or a ___ value Expression Variable Constant
A ___ value cannot be passed to a reference parameter Constant
When you include & after the data type of a formal parameter, the formal parameter becomes a ___ parameter Reference
Created by: Araceli05Gomez
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards