Location of core theme functions?
Check out the API Docs on Drupal.org.  There you will be able to find the description on how to use the functions as well as the actual code of the function.  For your use, here is theme_table().  The actual function is in "includes/theme.inc, line 1631" as stated in the theme_table() documentation page.