Difference between pointer in C++ and reference type in C#
c#, c++, pointers, reference
Solution
In C# the reference type will be automatically garbage collected when no longer needed.
Problem
In C++ a pointer is a pointer to an address of memory where another variable is stored and in C# a reference is some how same. What is the difference between these two?