Calculate Age, Given Date of Birth

Posted by bond on Stack Overflow See other posts from Stack Overflow or by bond
Published on 2010-04-20T17:47:58Z Indexed on 2010/04/20 18:03 UTC
Read the original article Hit count: 251

Filed under:
|

Given a date of birth, how would I go about calculating an age in C?

For example, if today's date is 20/04/2010 and the date of birth given is 12/08/86, then age will be 23 years, 8 months, and 8 days.

Any suggestions would be appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about c

    Related posts about homework