Despite strong gains in the IT space on good results and bonus announcement from Tata Conultancy Services, the Indian stock market ended flat on Friday, with a largely negative trend in global markets and speculation about a rate hike by RBI prompting investors to tread cautiously.