c++ chapter 6

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

local

A(n) _________ variable is defined inside a function and is not accessible outside the function.

definition, prototype

Either a function's _________ or its _________ must precede all calls to the function.

void

If a function doesn't return a value, the word _________ will appear as its return type.

local

If a function had a local variable with the same name as a global variable, only the ______ variable can be seen by the function.

parameters

Special variables that hold copies of function arguments are called _________.

exit

The ______ function causes a program to terminate.

return

The ______ statement causes a function to end immediately.

constant

The value of a default argument must be a ______.

parameter lists

Two or more functions may have the same name, as long as their ______ are different.

zero

Unless you explicitly initialize global variables, they are automatically initialized to ______.

arguments

Values that are sent into a function are called _________.

last

When a function uses a mixture of parameters with and without default arguments, the parameters with default arguments must be defined ______.

value

When only a copy of an argument is passed to a function, it is said to be passed by _________.

refrence

When used as parameters, ______ variables allow a function to access the parameters original argument.

default

______ arguments are passed to parameters automatically if no argument is provided in the function call.

static

______ local variables retain their value between function calls.

global

________ variables are defined outside all functions and are accessible to any function within their scope.

global

________ variables provide an easy way to share large amounts of data among all the functions in a program.

prototype

A(n) _________ eliminates the need to place a function definition before all calls to the function.

refrence

Reference variables allow arguments to be passed by ______.

&

Reference variables are defined like regular variables, except there is an ______ in front of the name.

header

The _________ is the part of a function definition that shows the function name, return type, and parameter list.


Set pelajaran terkait

Anatomy & Physiology: Cardiac Conduction System

View Set

Exam 2 med surg chapter level 1-5

View Set

3 - Life Insurance Policies - Provisions, Options and Riders Part A (15 questions)

View Set

Principles of Auditing Chapter 17

View Set

Prep U's - Chapter 31 - Mental Health Disorders of Older Adults

View Set

Exam FX, VA Property & Casualty Insurance

View Set

Theory week 4-Comprehensive Family Assessment

View Set