title: What is a %2s and %2d command in C, and when i use it?
body: <p>I would like to know why i use %2s here:</p>
  
  <pre><code>char card_name[3];
  puts ("Enter the card name: ");
  scanf ("%2s, card_name);
  </code></pre>
  
  <p>And why i use %2d:</p>
  
  <pre><code>int n = 0;
  scanf ("%2d", &amp;n);
  printf ("-&gt; %d\n", n);
  </code></pre>