title: Two string literals have the same pointer value?
body: <p>When I run this program using MinGW, im getting output as "="</p>
  
  <pre><code>#include&lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
   char *str1 = "Hello";
   char *str2 = "Hello";
  
   if(str1==str2)
   cout&lt;&lt;"=";
   else
   cout&lt;&lt;"!=";
  
  
   return 0;
  }
  </code></pre>
  
  <p>However, logically, it should be !=, coz these are pointers and they are pointing to different memory locations. When I run this code in my Turbo C++, i get !=</p>