The Sensex ended 40 points higher at 83,978.49, while the Nifty 50 settled at 25,763.35, up 41 points, or 0.16 per cent. The BSE Midcap index ended with a healthy gain of 0.62 per cent, while the Smallcap index rose by 0.71 per cent.