Programming Ch 5

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

All functions in the math library return what data type?

double

What is the most concise way to define x any y as double?

double x, double y

Coercion is :

forcing of arguments to the appropriate types

A function prototype does not have to :

include parameter names

What type of a parameter type is omitted in a function definition?

int

A function prototype can always be omitted when a function :

is defined before it is first invoked

Which of the following is not included in <math.h> ? pow floor ln log10

ln

Which is not an ANSI standard lib function? printf main scanf pow

main

T/F The designers of ANSI C++ borrowed the notion of function prototypes from the dev of C

False

Is every compound statement a block?

No

Is the definition of a function always visible?

No

T/F It is not incorrect to use the same names for the args passed to a function and the corresponding parameters in the function definition.

True

Are boss functions normally unaware of when a worker function calls another function?

Yes

What type of error is caused by placing a semicolon after the right parentheses of a parameter list?

syntax error

Which of the following is most different from the others? worker function caller calling function boss function

worker function


Ensembles d'études connexes

The History of Climate Change Policy

View Set

Legal Ethics Chapter 10: Criminal Law

View Set

Chapter 51: Drug Therapy With General Anesthetics

View Set

11. TÉTEL A fogyasztás és a vásárlás közgazdasági és pszichológiai alapjai, tudatosság a vásárlási folyamat során

View Set