title: How to reset a static struct inside a function
body: <p>So let's say I have a function</p>
  
  <pre><code>struct coinTypes {
      int tenP = 0;
      int twentyP = 0;
      int fiftyP = 0;
  };
  
  coinTypes numberOfCoins(int coins)
  {
  
      static coinTypes types;
  
      // incrementing structs values
  }
  </code></pre>
  
  <p>Let's say I have used this function for some time, and values in coinTypes struct are no longer 0. Then I decided to use this function for another purpose and I need the values to be 0 again. Is there any way to reset coinTypes struct?</p>