MERGE SORT Algorithm

Why I am getting runtime error ?

Hi @vaishnavtannu
change the size of temp from 1000 to 1000000.
u were getting run time error since ur code was trying to access the value of temp out of bounds.
hope dis helps.
if some thing is unclear, feel free to post ur doubt here.