title: get a specific char from array of strings with C
body: <p>I have an array of strings I want to print a specific char from:</p>
  <pre><code>char *Code[17]={&quot;MAIN: add r3, LIST&quot;,
                  &quot;LOOP: prn #48&quot;,
                  &quot;lea STR, r6&quot;,
                  &quot;inc r6&quot;,
                  &quot;mov r3, K&quot;,
                  &quot;sub r1, r4&quot;,
                  &quot;bne END&quot;,
                  &quot;cmp val1, #-6&quot;,
                  &quot;bne %END&quot;,
                  &quot;dec K&quot;,
                  &quot;jmp %LOOP&quot;,
                  &quot;END: stop&quot;,
                  &quot;STR: .string “abcd”&quot;,
                  &quot;LIST: .data 6, -9&quot;,
                  &quot;.data -100&quot;,
                  &quot;.entry K&quot;,
                  &quot;K: .data 31&quot;};
  printf(&quot;%s&quot;,&amp;Code[1][4]);
  </code></pre>
  <p>The char I want to print is &quot;<strong>:</strong>&quot; from the second string (LOOP: prn #48).</p>
  <p>When I try to print using <strong>printf(&quot;%s&quot;,&amp;Code[1][4]);</strong> what I get is &quot;<strong>: prn #48</strong>&quot;</p>
  <p>I want to print the char &quot;<strong>:</strong>&quot; alone so I also tried doing printing with %c and got this warning:</p>
  <blockquote>
  <p>warning: format '%c' expects argument of type 'int', but argument 2 has type 'char *'</p>
  </blockquote>
  <p>How do I get the specific char from a specific string in the array?</p>
  <p>Also why do I get A warning that %c expects type int? isn't %c used for printing and scanning A char?</p>