title: Ternary operator is always false
body: <p>I am working on a project within C code and trying to use a ternary if statement but its always returning false and I don't understand why. </p>
  
  <p>The ternary if statement is:</p>
  
  <pre><code>(reportParameterArray[P_TARGET] == '\0') ? reportParameterArray[P_TARGET] : "HELLO"
  </code></pre>
  
  <p>What I am trying to do is if <code>reportParameterArray[P_TARGET]</code> doesn't equal to \0 then it should output the actual value otherwise it prints hello. But at the moment it always prints <code>HELLO</code>. </p>
  
  <p>When I debug I can see that the value is \0 so it should print "HELLO" but when there is an actual value it still prints HELLO and not the actual value of reportParameterArray[P_TARGET]. </p>
  
  <p>reportParameterArray[P_TARGET] is of type char**</p>
  
  <p>Thanks for any help you can provide. </p>