Apple Inc chief executive Tim Cook is joining the roster of the very rich who are giving away their wealth.