title: Passing Void type parameter in C
body: <p>Hello there I am working on an assignment in C where I need to pass in an unknown type of parameter into a function. </p>
  
  <p>For example suppose I have the following:</p>
  
  <pre><code>int changeCount(void* element)
  {
      element.Count = element.Count++;
  
      return 1;
  
  }
  </code></pre>
  
  <p>The reason why variable element is void is because there are 3 types of possibilities. All 3 however do have a member variable named "Count". </p>
  
  <p>When I try to compile the actual code I wrote in Eclipese, I get the following error:</p>
  
  <blockquote>
    <p>error: request for member ‘Count’ in
    something not a structure or union</p>
  </blockquote>
  
  <p>I am guessing this is happening because the compiler doesn't know the type of "element" before hand. However I don't see why this isn't working. </p>
  
  <p>Thanks for help!</p>