title: How can i identify the size of structure member?
body: <pre><code>struct busData{
  int busNum;
  char str[SIZE+1]; //SIZE  = 1000
  };
  
  int main(){
      struct busData *bus = (struct busData*)calloc(5, sizeof(struct busData));
  
  
  printf("\n%d", sizeof(bus)); //result is 4
  free(bus);    
  return 0;
      }
  </code></pre>
  
  <p>Now It is showing '4' or '8'depending on platform as a result. I think it should display 5040 right? Because I gave <code>5</code> value with <code>calloc()</code>. So how can I get 5040? i am using the 3 elements until 'bus+2' and then I am freeing up with free(bus); And i want to know how many elements left (it should show 2008). so i need 5040? </p>