Apple Inc briefly edged past oil major Exxon Mobil to become the most valuable company in the United States after days of volatile stock market action.

The market value of Apple rose on Tuesday to $341.5 billion, just above Exxon's at $341.4 billion, even as the oil major rakes in more than four times Apple's annual revenue.

(Reporting by Poornima Gupta and Rodrigo Campos)