title: Making an array of char in C
body: <p>I am new to C,</p>
  
  <p>So I tried to make a program assigning grades according to marks of students.
  I need to make a char array with the first slot referring to the first student .. etc</p>
  
  <p>The initialization was simple</p>
  
  <pre><code>char grade[n];
  </code></pre>
  
  <p>Where n is the number of students </p>
  
  <p>to assign values I made a condition comparing the marks in a loop and if the condition is fulfilled this kind of statement is executed :</p>
  
  <pre><code>grade[i] == 'B';
  </code></pre>
  
  <p>To call the value at the end I used this :</p>
  
  <pre><code>printf("%c", &amp;grade[i]);
  </code></pre>
  
  <p>Where "i" is the displaying loop control variable.</p>
  
  <p>At the end, strange symbols were displayed. What is the right way to create an array of chars and calling individual "slots" ?</p>