title: Assign int array to in pointer in struct
body: <p>I have created below C struct.</p>
  
  <pre><code>typedef struct KnightsMartSale {
  char firstName[21];
  char lastName[21];
  int numItemsOnList;
  int *itemsPurchased; // array of item numbers
  struct KnightsMartSale *next;
  } KMSale;
  </code></pre>
  
  <p>Here is it possible to assign int array to the <strong>int *itemsPurchased</strong> pointer?
  If it is possible how print the values?</p>