title: Comparison with string literal results in unspecified behaviour?
body: <p>I am having a problem with the program I am trying to code. It's just a Windows console program and I am very new to C++. It's only my 4th program.</p>
  
  <p>The problem I am having is that when I run my program I have no errors but a lot of warnings that say "comparison with string literal results in unspecified behaviour" in the lines that I will highlight below.</p>
  
  <p>When the program runs instead of adding the numbers I want it to it just gives me a random huge number no matter what I put in for my inputs.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
       int hold;
       int i;
       int n;
       i = 6;
       int result;
       int * price;
       char items[100][100];
  
       if (items == 0)
          cout &lt;&lt; "No items can be stored";
      else
      {
          for (n=0; n&lt;i; n++)
          {
              cout &lt;&lt; "Item#" &lt;&lt; n &lt;&lt; ": ";
              cin &gt;&gt; items[n];
          }
          cout &lt;&lt;  "\nYou Entered: \n";
          for (n=0; n&lt;i; n++)
              cout &lt;&lt; items[n] &lt;&lt; ", ";
  
      }
      for (n=0; n&lt;i; n++)
      {
          if (items[n] == "ab"){
          price[n] = 2650;
          }
  
          else if (items[n] == "ae"){
          price[n] = 1925;
          }
  
          else if (items[n] == "ie"){
          price[n] = 3850;
          }
  
          else if (items[n] == "bt"){
          price[n] = 3000;
          }
  
          else if (items[n] == "pd"){
          price[n] = 2850;
          }
  
          else if (items[n] == "ga"){
          price[n] = 2600;
          }
  
      }
  
      for (n=0; n&lt;i; n++)
      {
      result = result + price[n];
      }
  
      cout &lt;&lt; "\nTotal gold for this build: " &lt;&lt; result;
      cin &gt;&gt; hold;
      return 0;
  }
  </code></pre>
  
  <p>Any help is appreciated. There is probably something big that I've done wrong. The names in the if statements are all currently placeholders and I'll be adding a lot more if statements when I can get it to work with the bare 6 which is what it needs to work.</p>