Programming Ch 7

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

The unary * and ______ are complements of one another. / & ^ |

&

What is the address operator?

&

If array name arrayName is passed to a function, C automatically passes __________.

&arrayName[0]

T/F The unary * operator returns the value of its operand

False

Three of the following have the same value, which one differs? *&Ptr &*Ptr *Ptr Ptr

*Ptr

What does this do? y = &yPtr;

Assigns the address of the var yPtr to a pointer variable y.

T/F Call-by-value is always more efficient than call-by-reference.

False

T/F It's necessary to include names of pointer arguments in function pro-totypes.

False

T/F The address operator can be applied to variables defined with the storage class 'register'.

False

Which statement is false? The indirection operator * distributes to all comma separated variable names in a def. The letters Ptr in a variable are optional.

First one

Which statement is generally false? a) Initializing pointers is optional. b) Dereferencing an uninitialized pointer could lead to a fatal execution time error. c) Deferencing an uninitialized pointer could accidentally modify im-portant data. d) Derefencing an uninitialized pointer causes a syntax error.

d

Referencing a value through a pointer is called _______.

indirection

When calling a function with arguments that should be modified, the __________ of those arguments are passed.

memory

Pointers are variables that contain ____.

memory addresses

int *count; is what kind of error?

not an error

Pointers cannot be used to: -find the address of a variable -reference values directly -manipulate dynamic data structures

reference values directly

Pointers may be assigned which of the following? NULL all integer values an address a & b

a & b


Ensembles d'études connexes

Pre-Columbian Mayas, Incas, and Aztecs

View Set

Pre-Class Quiz Chapter 10 Questions

View Set

Perfusion: Lewis Ch. 32, 36, 34, 67, 66, Concept 15

View Set

Chapter 2: Income Tax Filing Requirements

View Set