References Flashcards

(6 cards)

1
Q

in Parameter passing, what happens when you pass varaibles?

A

contents are copied and given as input to other functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

do arrays pass by value or by reference?

A

reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

reference or pointer

A

reference to the address of a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do i dereference the variable ‘person’?

A

*person

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

dereference

A

find the contents strored at the address of a reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

reference benefits :

A

no need for global variables

dont have to copy big lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly