Indian benchmark indices ended higher for the fifth consecutive session after a flat start on Wednesday.The BSE Sensex ended at 39,878.95, adding 304.38 points or 0.77%. The Nifty was at 11,738.85, up 76.45 points or 0.66%.