# Compare memory address (pointer)

* std::ptr::addr_of
* addr_of

* Another way to show that different pieces of strings are located in different places in the memory.

{% embed include file="src/examples/strings/compare-memory-address/src/main.rs" %}
{% embed include file="src/examples/strings/compare-memory-address/out.out" %}


