title: printf ipv6 address using struct in6_addr and ipv4 address using u_int32_t
body: <p>I want to <code>printf</code> the values of ipv6 address whose type is  <code>struct in6_addr</code>  and ipv4 address whose type is <code>u_int32_t</code> to console. </p>
  
  <p>I have tried type casting but it yields error</p>
  
  <pre><code>error: aggregate value used where an integer was expected
  printf("---------------- ipv4= %zu ipv6 = %zu ",(size_t)ipv4, (size_t)ipv6);
  </code></pre>
  
  <p>I have also tried <code>%s ,%lu</code> and many other ways after going through the old question in stack overflow and other places . </p>
  
  <p>If anyone has a solution to it I shall be greatly thankful . </p>