Reference behaves like an alias for an existing variable, i.e., it is a temporary variable.
while,
pointer have actual space in memory which point to another memory.