Suppose I am an investor and now buy a call option. At the maturity date, if the strike price is lower than the market price of the asset, I decide to buy the underlying at the strike price because I am supposed to get profit from the difference between the two prices. But I don't understand how I can get the profit? Am I supposed to sell the underlying to the market immediately after it is bought?
Similar question for an put option. At maturity date, if the strike price is higher than the market price, am I supposed to buy the underlying from the market immediately before it is sold at the striking price, in order to get profit?
Thanks!