I am getting runtime error. please check
💡-mergesort
shubham_jha
(Shubham Kumar )
May 7, 2021, 4:10am
#1
asaurabh_26
(logical coder)
May 7, 2021, 5:24am
#2
Modified Code
Your mistakes
inc the size of temp array also
instead of int a[n];
use int a[100000];
int a[n] is not correct because at compile time n is garbage