ransactions in the cash segment are settled on a T+2 basis. The buyer pays the seller in full for the shares that are purchased, and the seller delivers all the shares to the buyer. In the cash segment, the shares are delivered to the buyer by the seller. In intraday trading however, the transaction will be squared off by you, or it will be done automatically at the end of the day unless it is converted into delivery.
To learn about about margin trading read this article – What is Margin trading?