Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

armanriazi•rust•reference•vs•pointer

A reference is like a pointer in that it’s an address we can follow to access data stored at that address that is owned by some other variable. Unlike a pointer, a reference is guaranteed to point to a valid value of a particular typ
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+5 =