exsample Flashcards

1
Q

Dereferencing a dangling pointer will always cause a segmentation fault at runtime?

A

true

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

Dereferencing a pointer storing address 0 will always cause a segmentation fault at runtime

A

true

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

p1[3] is equal to ..

A

*p1 + 3

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

&p1[3] is equal to

A

p1 + 3

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

what operators are used for defrefencing a pointer

A

-> and *

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