# How two pointer are been compared in C

When comparing two pointers, the comparison is based on the memory addresses they are pointing to.

I found about this when studying alias, so I will use alias example

when two pointers point to the string in a memory address, the pointer farther in the string, is the greater one

`ls='ls --color=auto'`  
if p1 points to '`=`'(first '=') and p2 points to '`l`'(first l) then p2 &lt; p1
