title: How to initialize all values of array in structure in c
body: <p>I need to initialize all values of the array to 0. newCount->numbers[1] = {0} gives the error "expected expression". How would I go about this?</p>
  
  <pre><code>typedef struct count *Count;
  
  struct count{
      int numbers[101];
      int totalCalls;
      int totalCallsEach[101];
  };
  
  Count create_Count(void){
      Count newCount = malloc(sizeof(struct count));
      newCount-&gt;numbers[101] = {0};
      newCount-&gt;totalCalls = 0;
      return newCount;
  }
  </code></pre>