title: Can I use malloc with references instead of pointers?
body: <pre><code>static Player players[32];
  
  Player* Player_constructor() {
      Player* player = malloc(sizeof(Player));
      // Do some initializations
      return player;
  }
  ...
  ...
  ...
  players[0] = Player_constructor();
  </code></pre>
  
  <p>The issue is that <code>players[0]</code> is type <code>Player</code> and <code>Player_constructor</code> is type <code>Player*</code>.</p>
  
  <p>How can I overcome this issue? Will using references help?</p>