title: Is this a undefined behavior or not?
body: <p>What will be the output of the following C program?</p>
  <pre class="lang-cpp prettyprint-override"><code>main()
  {
      char g[] = &quot;geeksforgeeks&quot;;
      printf(&quot;%s&quot;, g + g[6] - g[8]);
  }
  </code></pre>
  <ol>
  <li><code>geeks</code></li>
  <li><code>rgeeks</code></li>
  <li><code>geeksforgeeks</code></li>
  <li><code>forgeeks</code></li>
  </ol>
  <p>The answer is 1: <code>geeks</code>.</p>
  <p>But I had an argument with someone that he said it is undefined behaviour. So is it undefined behaviour or not?</p>