Apple Inc. is expected to report Tuesday that its stockpile of cash has topped a quarter of a trillion dollars, an unrivaled corporate hoard that is greater than the market value of both Wal-Mart Stores Inc. and Procter & Gamble Co. and exceeds the combined foreign-currency reserves held by the U.K.