Block 3 - Objective 1D (C program)

Block 3 - Objective 1D (C program)

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What are function parameters?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (10)

Section 1

(10 cards)

What are function parameters?

Front

Placeholders - for the arguments needed to specify when a function is called

Back

Control returned to the point at which a function is called when the keyword _____ is encountered

Front

return

Back

What happens when a function is called?

Front

A function is executed when it is "called"

Back

What section of a program will you find function prototypes? and what section do they appear before?

Front

Declaration(before the main( ) function)

Back

What is the correct syntax to prototype a function named "myfunction" which returns a float data type and has two float parameters, in order, named "x" and "y"

Front

float myfunction (float x, float y);

Back

What is the syntax to call the function in question 9 with two variables, in order called a and b?

Front

myfunction (a, b);

Back

When do variables cease to exist?

Front

At the next closing brace - {} curly braces

Back

What is meant by parameter list in a function prototype? And what are they enclosed in?

Front

Placeholder for arguments, they are enclosed in parenthesis

Back

The _____ section is optional but recommended and includes such information as author, date, etc.

Front

documentation

Back

Where do variables exist in relation to scope?

Front

Within the block in which they are defined

Back