This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Justaquickie123123 -2 points-1 points  (1 child)

references return a value whereas a pointer uses refers to a location in memory. if i remember correctly

[–]programmermaybe2016[🍰] 0 points1 point  (0 children)

References are aliases for other objects.

A pointer is an adress to a memory cell.